enhance: mod+p to add/edit property

This commit is contained in:
Tienson Qin
2024-05-27 19:06:27 +08:00
parent 0c80177642
commit e6002d43c9
10 changed files with 77 additions and 112 deletions

View File

@@ -349,7 +349,7 @@
:editor/add-property {:binding "mod+p"
:fn (fn [e]
(.preventDefault e)
(state/pub-event! [:editor/new-property]))}
(state/pub-event! [:editor/new-property {}]))}
:ui/toggle-brackets {:binding "mod+c mod+b"
:fn config-handler/toggle-ui-show-brackets!}