瀏覽代碼

fix: command palette is no long working

Tienson Qin 3 年之前
父節點
當前提交
1663192709
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 0
      src/main/frontend/handler/command_palette.cljs
  2. 1 2
      src/main/frontend/modules/shortcut/config.cljs

+ 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
     (->