Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix(web): prevent number-key shortcuts from hijacking input in focused editor (#1810)

Ishan5467d11980e2
diff --git a/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx b/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx
index 98aff58b0..3b4093e38 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);