Browse Source

chore(nc-gui): rollback previous version

pull/5342/head
Wing-Kam Wong 2 years ago
parent
commit
d9df59f1a6
  1. 8
      packages/nc-gui/pages/[projectType]/[projectId]/index.vue

8
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()

Loading…
Cancel
Save