mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 04:08:23 +00:00
🐛 Makes esc exit text edition and drawing shape at the same time
This commit is contained in:
parent
d8e0bab4ad
commit
6d9155032f
@ -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…
x
Reference in New Issue
Block a user