From 9dc51b82fdc8ba428a1e769a0ec7b91df73435c7 Mon Sep 17 00:00:00 2001 From: "B.Melnik" Date: Tue, 20 Apr 2021 15:09:53 +0300 Subject: [PATCH] feat: add processing CTRL + W to Browser --- ui/app/AppLayouts/Browser/BrowserLayout.qml | 7 +++++++ ui/main.qml | 1 + 2 files changed, 8 insertions(+) diff --git a/ui/app/AppLayouts/Browser/BrowserLayout.qml b/ui/app/AppLayouts/Browser/BrowserLayout.qml index cd42b4e517..13e38015cc 100644 --- a/ui/app/AppLayouts/Browser/BrowserLayout.qml +++ b/ui/app/AppLayouts/Browser/BrowserLayout.qml @@ -362,6 +362,13 @@ Rectangle { browserHeader.addressBar.selectAll(); } + Action { + shortcut: "Ctrl+W" + onTriggered: { + tabs.removeView(tabs.currentIndex) + } + } + Action { shortcut: StandardKey.Close diff --git a/ui/main.qml b/ui/main.qml index 04cb45c629..26d1dbd4b5 100644 --- a/ui/main.qml +++ b/ui/main.qml @@ -71,6 +71,7 @@ ApplicationWindow { Action { shortcut: "Ctrl+W" + enabled: loader.item.currentView !== Utils.getAppSectionIndex(Constants.browser) onTriggered: { applicationWindow.visible = false; }