The best way to control Claude Code, Codex and more from any computer or phone
fix(web): prevent number-key shortcuts from hijacking input in focused editor (#1810)
Ishan committed
Apr 11, 2026 at 08:43 UTC
5467d11980e2b41e4cf5c8d1c5fe972532da3a74
1 file changed
+4
-1
apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx
+4
-1
@@ -100,7 +100,10 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(
100
if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) {
101
return;
102
}
103
- if (target instanceof HTMLElement && target.isContentEditable) {
103
+ if (
104
+ target instanceof HTMLElement &&
105
+ target.closest('[contenteditable]:not([contenteditable="false"])')
106
+ ) {
107
return;
108
}
109
const digit = Number.parseInt(event.key, 10);