Ver Fonte

복사 때는 작동 안하도록

잉여개발기 há 6 meses atrás
pai
commit
fa932a8f99
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      views/main_css/js/func/shortcut.js

+ 4 - 0
views/main_css/js/func/shortcut.js

@@ -22,6 +22,10 @@ window.addEventListener("keydown", e => {
         return;
     }
 
+    if(e.ctrlKey || e.metaKey || e.altKey) {
+        return;
+    }
+
     shortcut_key_list[e.code] = 1;
     if(Object.keys(shortcut_key_list).length === 1) {
         let doc_shortcut = /^\/(w|w_from|history|edit|acl|topic|xref)\//i;