feat: add close tab hotkey for web

This commit is contained in:
Nybkox
2024-11-22 15:20:01 +01:00
parent a40ec7e66b
commit 46d25710b8

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;