Add alt as mod-key to add stroke color to a shape from color in menu library

This commit is contained in:
eva 2022-01-03 14:44:42 +01:00 committed by Alonso Torres
parent 06b3499e7d
commit d4fab3b46c
2 changed files with 2 additions and 1 deletions

View file

@ -43,7 +43,7 @@
(let [select-color
(fn [event]
(let [ids (wsh/lookup-selected @st/state)]
(if (kbd/shift? event)
(if (kbd/alt? event)
(st/emit! (mdc/change-stroke ids (merge uc/empty-color color)))
(st/emit! (mdc/change-fill ids (merge uc/empty-color color))))))]