fix: command palette is no long working

This commit is contained in:
Tienson Qin
2022-04-01 02:20:02 +08:00
parent da3c9b04c4
commit 1663192709
2 changed files with 2 additions and 2 deletions

View File

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

View File

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