fix: ESC should keep ;;

This commit is contained in:
Tienson Qin
2024-06-01 21:37:55 +08:00
parent 0d6c810b65
commit 3789d20344
3 changed files with 16 additions and 3 deletions

View File

@@ -905,6 +905,7 @@
(let [shift? (.-shiftKey e)
shortcut (if shift? (str "shift+" (.-key e)) (.-key e))]
(db-property-handler/set-property-by-shortcut! shortcut)))
(state/set-ui-last-key-code! (.-key e))
(state/set-state! :editor/latest-shortcut nil)))))
[state route-match main-content]
(let [{:keys [open-fn]} state