mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 16:21:57 -05: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)
|
||||
(st/emit! (ms/->KeyboardEvent :down key ctrl? shift? alt?))
|
||||
(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))))))
|
||||
|
||||
on-key-up
|
||||
|
|
Loading…
Add table
Reference in a new issue