Merge pull request #945 from dbgate/feature-close-tab-hotkey-for-web

feat: add close tab hotkey for web
This commit is contained in:
Jan Prochazka
2024-11-22 15:26:43 +01:00
committed by GitHub

View File

@@ -236,7 +236,7 @@
id: 'tabs.closeTab',
category: 'Tabs',
name: 'Close tab',
keyText: isElectronAvailable() ? 'CtrlOrCommand+W' : null,
keyText: isElectronAvailable() ? 'CtrlOrCommand+W' : 'CtrlOrCommand+Shift+W',
testEnabled: () => {
const hasAnyOtherTab = getOpenedTabs().filter(x => !x.closedTime).length >= 1;
const hasAnyModalOpen = getOpenedModals().length > 0;