0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 08:11:30 -05:00

Use shift modifier instead ctrl for multiple selection in canvas.

This commit is contained in:
Andrey Antukh 2016-02-03 17:23:37 +02:00
parent 615aeea576
commit 9a1ed2bb9b
2 changed files with 5 additions and 1 deletions

View file

@ -9,5 +9,9 @@
[event]
(.-ctrlKey event))
(defn shift?
[event]
(.-shiftKey event))
(def esc? (is-keycode? 27))
(def enter? (is-keycode? 13))

View file

@ -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))))