mirror of
https://github.com/penpot/penpot.git
synced 2026-02-14 07:33:04 +00:00
Use shift modifier instead ctrl for multiple selection in canvas.
This commit is contained in:
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user