mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 16:21:57 -05:00
Use shift modifier instead ctrl for multiple selection in canvas.
This commit is contained in:
parent
615aeea576
commit
9a1ed2bb9b
2 changed files with 5 additions and 1 deletions
|
@ -9,5 +9,9 @@
|
|||
[event]
|
||||
(.-ctrlKey event))
|
||||
|
||||
(defn shift?
|
||||
[event]
|
||||
(.-shiftKey event))
|
||||
|
||||
(def esc? (is-keycode? 27))
|
||||
(def enter? (is-keycode? 13))
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
(do
|
||||
(dom/stop-propagation event)
|
||||
(swap! local assoc :init-coords [x y])
|
||||
(if (.-ctrlKey event)
|
||||
(if (kbd/shift? event)
|
||||
(rs/emit! (dw/select-shape id))
|
||||
(rs/emit! (dw/deselect-all)
|
||||
(dw/select-shape id))))
|
||||
|
|
Loading…
Add table
Reference in a new issue