🐛 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:
Krishna zade 2026-06-22 21:02:12 +05:30 committed by GitHub
parent 4c5991514a
commit 0dbc2c54d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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