mirror of
https://github.com/penpot/penpot.git
synced 2026-03-27 05:40:48 +01:00
🐛 Fix issue with shift+select to deselect shapes
This commit is contained in:
@@ -693,3 +693,13 @@
|
||||
acc)))
|
||||
acc))))))
|
||||
|
||||
(defn toggle-selection
|
||||
([set value]
|
||||
(toggle-selection set value false))
|
||||
|
||||
([set value toggle?]
|
||||
(if-not toggle?
|
||||
(conj (ordered-set) value)
|
||||
(if (contains? set value)
|
||||
(disj set value)
|
||||
(conj set value)))))
|
||||
|
||||
Reference in New Issue
Block a user