Răsfoiți Sursa

Merge pull request #177 from logseq/defclass/fix/cmd-c-commit

fix(shortcut): fix meta+c problem
Tienson Qin 5 ani în urmă
părinte
comite
0d05b84fde
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/main/frontend/components/sidebar.cljs

+ 2 - 1
src/main/frontend/components/sidebar.cljs

@@ -233,7 +233,8 @@
             (when (and (not (util/input? (gobj/get e "target")))
             (when (and (not (util/input? (gobj/get e "target")))
                        (not (gobj/get e "shiftKey"))
                        (not (gobj/get e "shiftKey"))
                        (not (gobj/get e "ctrlKey"))
                        (not (gobj/get e "ctrlKey"))
-                       (not (gobj/get e "altKey")))
+                       (not (gobj/get e "altKey"))
+                       (not (gobj/get e "metaKey")))
               (when-let [repo-url (state/get-current-repo)]
               (when-let [repo-url (state/get-current-repo)]
                 (if (and
                 (if (and
                      (not (state/get-edit-input-id))
                      (not (state/get-edit-input-id))