mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -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]
|
||||
(dom/stop-propagation event)
|
||||
(when (= (.-keyCode event) 27) ; ESC
|
||||
(on-close)))
|
||||
(do
|
||||
(st/emit! :interrupt)
|
||||
(on-close))))
|
||||
|
||||
on-mount
|
||||
(fn []
|
||||
|
|
Loading…
Reference in a new issue