mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 02:21:40 +02:00
🐛 Do not activate viewport panning with space key on inputs
This commit is contained in:
parent
4af113b133
commit
4a4cff74e8
1 changed files with 2 additions and 1 deletions
|
@ -388,7 +388,8 @@
|
||||||
(when-not (.-repeat bevent)
|
(when-not (.-repeat bevent)
|
||||||
(st/emit! (ms/->KeyboardEvent :down key ctrl? shift? alt?))
|
(st/emit! (ms/->KeyboardEvent :down key ctrl? shift? alt?))
|
||||||
(when (and (kbd/space? event)
|
(when (and (kbd/space? event)
|
||||||
(not= "rich-text" (obj/get target "className")))
|
(not= "rich-text" (obj/get target "className"))
|
||||||
|
(not= "INPUT" (obj/get target "tagName")))
|
||||||
(handle-viewport-positioning viewport-ref))))))
|
(handle-viewport-positioning viewport-ref))))))
|
||||||
|
|
||||||
on-key-up
|
on-key-up
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue