Browse Source

apply ⌘ key to show shortcuts help

Yuki Takei 8 năm trước cách đây
mục cha
commit
c822298530
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      resource/js/legacy/crowi.js

+ 1 - 1
resource/js/legacy/crowi.js

@@ -972,7 +972,7 @@ window.addEventListener('keypress', (event) => {
     case 'c':
       Crowi.handleKeyCHandler(event);
     case '/':
-      if (event.ctrlKey) {
+      if (event.ctrlKey || event.metaKey) {
         Crowi.handleKeyCtrlSlashHandler(event);
       }
     break;