From d9df59f1a663cbfc553d73aaa27625217199042b Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 22 Mar 2023 16:27:54 +0800 Subject: [PATCH] chore(nc-gui): rollback previous version --- packages/nc-gui/pages/[projectType]/[projectId]/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/pages/[projectType]/[projectId]/index.vue b/packages/nc-gui/pages/[projectType]/[projectId]/index.vue index 3a47595659..8703b88dfa 100644 --- a/packages/nc-gui/pages/[projectType]/[projectId]/index.vue +++ b/packages/nc-gui/pages/[projectType]/[projectId]/index.vue @@ -223,8 +223,8 @@ function openKeyboardShortcutDialog() { useEventListener(document, 'keydown', async (e: KeyboardEvent) => { const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey if (e.altKey && !e.shiftKey && !cmdOrCtrl) { - switch (e.code) { - case 'Comma': { + switch (e.keyCode) { + case 188: { // ALT + , if (isUIAllowed('settings') && !isDrawerOrModalExist()) { e.preventDefault() @@ -236,8 +236,8 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => { } } if (cmdOrCtrl) { - switch (e.code) { - case 'Slash': + switch (e.key) { + case '/': if (!isDrawerOrModalExist()) { $e('c:shortcut', { key: 'CTRL + /' }) openKeyboardShortcutDialog()