0
Fork 0
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:
Andrés Moya 2020-10-01 11:40:32 +02:00 committed by Alonso Torres
parent 4af113b133
commit 4a4cff74e8

View file

@ -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