Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/mobile-web/src/pages/ChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2419,9 +2419,9 @@ const ChatPage: React.FC<ChatPageProps> = ({ sessionMgr, sessionId, sessionName,
useEffect(() => {
const onKeyDown = (e: KeyboardEvent) => {
if (e.key === 'Tab' && e.shiftKey) {
// Skip when the textarea is focused — its own React handler already fired.
const tag = (e.target as HTMLElement)?.tagName;
if (tag === 'TEXTAREA') return;
const target = e.target as HTMLElement;
const tag = target?.tagName;
if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || target?.isContentEditable) return;
e.preventDefault();
cycleAgentModeRef.current();
}
Expand Down
1 change: 0 additions & 1 deletion src/web-ui/src/flow_chat/components/ChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,6 @@ export const ChatInput: React.FC<ChatInputProps> = ({
e.preventDefault();
e.stopPropagation();

// Dismiss slash command if open
if (slashCommandState.isActive) {
setSlashCommandState({ isActive: false, kind: 'modes', query: '', selectedIndex: 0 });
dispatchInput({ type: 'CLEAR_VALUE' });
Expand Down
Loading