mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
🐛 Makes esc exit text edition and drawing shape at the same time
This commit is contained in:
parent
d8e0bab4ad
commit
6d9155032f
1 changed files with 3 additions and 1 deletions
|
@ -317,7 +317,9 @@
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(when (= (.-keyCode event) 27) ; ESC
|
(when (= (.-keyCode event) 27) ; ESC
|
||||||
(on-close)))
|
(do
|
||||||
|
(st/emit! :interrupt)
|
||||||
|
(on-close))))
|
||||||
|
|
||||||
on-mount
|
on-mount
|
||||||
(fn []
|
(fn []
|
||||||
|
|
Loading…
Add table
Reference in a new issue