From 0dbc2c54d6f514118d70aadc5229b091ffd9b3c3 Mon Sep 17 00:00:00 2001 From: Krishna zade <114551368+Krishcode264@users.noreply.github.com> Date: Mon, 22 Jun 2026 21:02:12 +0530 Subject: [PATCH] :bug: Fix spacebar activating pan mode in editable fields as Comment Input box (#10287) Co-authored-by: Andrey Antukh --- frontend/src/app/main/ui/workspace/viewport/actions.cljs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/viewport/actions.cljs b/frontend/src/app/main/ui/workspace/viewport/actions.cljs index 2ab6f6f490..3803577d45 100644 --- a/frontend/src/app/main/ui/workspace/viewport/actions.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/actions.cljs @@ -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]