Browse Source

fix: command palette is no long working

Tienson Qin 3 years ago
parent
commit
1663192709

+ 1 - 0
src/main/frontend/handler/command_palette.cljs

@@ -49,6 +49,7 @@
 
 (defn invoke-command [{:keys [action] :as cmd}]
   (add-history cmd)
+  (state/set-state! :ui/command-palette-open? false)
   (state/close-modal!)
   (action))
 

+ 1 - 2
src/main/frontend/modules/shortcut/config.cljs

@@ -571,8 +571,7 @@
 
     :shortcut.handler/misc
     ;; always overrides the copy due to "mod+c mod+s"
-    {:misc/copy              (:misc/copy              all-default-keyboard-shortcuts)
-     :command-palette/toggle (:command-palette/toggle all-default-keyboard-shortcuts)}
+    {:misc/copy              (:misc/copy              all-default-keyboard-shortcuts)}
 
     :shortcut.handler/global-non-editing-only
     (->