From 5467d11980e2b41e4cf5c8d1c5fe972532da3a74 Mon Sep 17 00:00:00 2001 From: Ishan Date: Sat, 11 Apr 2026 08:43:58 +0530 Subject: [PATCH] fix(web): prevent number-key shortcuts from hijacking input in focused editor (#1810) --- .../src/components/chat/ComposerPendingUserInputPanel.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx b/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx index 98aff58b0dd7ca70f76787bdfe7ac0648f9c2173..3b4093e3801f49f1940c49bde749f67d892d498e 100644 --- a/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx +++ b/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx @@ -100,7 +100,10 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard( if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) { return; } - if (target instanceof HTMLElement && target.isContentEditable) { + if ( + target instanceof HTMLElement && + target.closest('[contenteditable]:not([contenteditable="false"])') + ) { return; } const digit = Number.parseInt(event.key, 10); -- 2.54.0