mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 21:56:00 +00:00
Merge pull request #945 from dbgate/feature-close-tab-hotkey-for-web
feat: add close tab hotkey for web
This commit is contained in:
@@ -236,7 +236,7 @@
|
|||||||
id: 'tabs.closeTab',
|
id: 'tabs.closeTab',
|
||||||
category: 'Tabs',
|
category: 'Tabs',
|
||||||
name: 'Close tab',
|
name: 'Close tab',
|
||||||
keyText: isElectronAvailable() ? 'CtrlOrCommand+W' : null,
|
keyText: isElectronAvailable() ? 'CtrlOrCommand+W' : 'CtrlOrCommand+Shift+W',
|
||||||
testEnabled: () => {
|
testEnabled: () => {
|
||||||
const hasAnyOtherTab = getOpenedTabs().filter(x => !x.closedTime).length >= 1;
|
const hasAnyOtherTab = getOpenedTabs().filter(x => !x.closedTime).length >= 1;
|
||||||
const hasAnyModalOpen = getOpenedModals().length > 0;
|
const hasAnyModalOpen = getOpenedModals().length > 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user