The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 07:15 UTC
fix(web): typing into a simulator no longer answers a waiting question (#38476)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Illia Panasenko committed
Nov 18, 2026 at 09:38 UTC
9758cf9e13d74516bc872eebb154c0b4b3b8aa23
2 files changed
+13
-1
apps/web/src/components/chat/ComposerPendingUserInputPanel.browser.test.tsx
+12
@@ -73,6 +73,18 @@ it.each<{ focus: string; control: ReactNode; toggles: boolean }>([
73
),
74
toggles: false,
75
},
76
+ {
77
+ focus: "a device screen that takes the key",
78
+ control: (
79
+ <div
80
+ role="application"
81
+ aria-label="Focused"
82
+ tabIndex={0}
83
+ onKeyDown={(event) => event.preventDefault()}
84
+ />
85
+ ),
86
+ toggles: false,
87
+ },
88
])(
89
"digit shortcut with focus in $focus toggles an option: $toggles",
90
async ({ control, toggles }) => {
apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx
+1
-1
@@ -153,7 +153,7 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(
153
useEffect(() => {
154
if (!activeQuestion || responseDisabled || isCollapsed || backgroundThread) return;
155
const handler = (event: globalThis.KeyboardEvent) => {
156
- if (event.metaKey || event.ctrlKey || event.altKey) return;
156
+ if (event.defaultPrevented || event.metaKey || event.ctrlKey || event.altKey) return;
157
const target = event.target;
158
if (isInSideChatPane(target)) return;
159
if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) {