feat: add processing CTRL + W to Browser

This commit is contained in:
B.Melnik 2021-04-20 15:09:53 +03:00 committed by Iuri Matias
parent 655097e2a2
commit 9dc51b82fd
2 changed files with 8 additions and 0 deletions

View File

@ -362,6 +362,13 @@ Rectangle {
browserHeader.addressBar.selectAll();
}
Action {
shortcut: "Ctrl+W"
onTriggered: {
tabs.removeView(tabs.currentIndex)
}
}
Action {
shortcut: StandardKey.Close

View File

@ -71,6 +71,7 @@ ApplicationWindow {
Action {
shortcut: "Ctrl+W"
enabled: loader.item.currentView !== Utils.getAppSectionIndex(Constants.browser)
onTriggered: {
applicationWindow.visible = false;
}