diff --git a/frontend/src/AppContent.vue b/frontend/src/AppContent.vue index fe665d1..dba16a3 100644 --- a/frontend/src/AppContent.vue +++ b/frontend/src/AppContent.vue @@ -110,12 +110,27 @@ onMounted(async () => { const maximised = await WindowIsMaximised() onToggleMaximize(maximised) }) + +const onKeyShortcut = (e) => { + switch (e.key) { + case 'w': + if (e.metaKey) { + // close current tab + const tabStore = useTabStore() + const currentTab = tabStore.currentTab + if (currentTab != null) { + tabStore.closeTab(currentTab.name) + } + } + break + } +}