mirror of
https://github.com/penpot/penpot.git
synced 2026-07-22 22:17:58 +00:00
🐛 Fix spacebar activating pan mode in editable fields as Comment Input box (#10287)
Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
4c5991514a
commit
0dbc2c54d6
@ -332,7 +332,8 @@
|
||||
editing? (or (txu/some-text-editor-content? target)
|
||||
(= "rich-text" (obj/get target "className"))
|
||||
(= "INPUT" (obj/get target "tagName"))
|
||||
(= "TEXTAREA" (obj/get target "tagName")))]
|
||||
(= "TEXTAREA" (obj/get target "tagName"))
|
||||
(true? (.-isContentEditable target)))]
|
||||
|
||||
(when-not (.-repeat bevent)
|
||||
(st/emit! (kbd/->KeyboardEvent :down key shift? ctrl? alt? meta? mod? editing? event)))))))
|
||||
@ -351,7 +352,8 @@
|
||||
editing? (or (txu/some-text-editor-content? target)
|
||||
(= "rich-text" (obj/get target "className"))
|
||||
(= "INPUT" (obj/get target "tagName"))
|
||||
(= "TEXTAREA" (obj/get target "tagName")))]
|
||||
(= "TEXTAREA" (obj/get target "tagName"))
|
||||
(true? (.-isContentEditable target)))]
|
||||
(st/emit! (kbd/->KeyboardEvent :up key shift? ctrl? alt? meta? mod? editing? event))))))
|
||||
|
||||
(defn on-pointer-move [move-stream]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user