add shortcuts and fix naming

This commit is contained in:
Konstantinos Kaloutas
2023-12-06 16:35:48 +02:00
committed by Gabriel Horner
parent 760cb8e314
commit 6e67df9e37
6 changed files with 28 additions and 8 deletions

View File

@@ -150,6 +150,18 @@
:whiteboard/toggle-grid {:binding "t g"
:fn #(.toggleGrid (.-api ^js (state/active-tldraw-app)))}
:whiteboard/clone-right {:binding (if mac? "ctrl+shift+right" "alt+right")
:fn #(.clone (.-api ^js (state/active-tldraw-app)) "right")}
:whiteboard/clone-left {:binding (if mac? "ctrl+shift+left" "alt+left")
:fn #(.clone (.-api ^js (state/active-tldraw-app)) "left")}
:whiteboard/clone-up {:binding (if mac? "ctrl+shift+up" "alt+up")
:fn #(.clone (.-api ^js (state/active-tldraw-app)) "up")}
:whiteboard/clone-down {:binding (if mac? "ctrl+shift+down" "alt+down")
:fn #(.clone (.-api ^js (state/active-tldraw-app)) "down")}
:auto-complete/complete {:binding "enter"
:fn ui-handler/auto-complete-complete}
@@ -867,7 +879,11 @@
:whiteboard/unlock
:whiteboard/group
:whiteboard/ungroup
:whiteboard/toggle-grid]
:whiteboard/toggle-grid
:whiteboard/clone-left
:whiteboard/clone-right
:whiteboard/clone-top
:whiteboard/clone-bottom]
:shortcut.category/others
[:pdf/previous-page