Skip to content
Open
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
2 changes: 1 addition & 1 deletion app/src/renderer/hub/AgentPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ function FollowUpInput({ sessionId, onUserInput, autoFocus }: { sessionId: strin
if (e.key === 'Escape') {
e.preventDefault();
textareaRef.current?.blur();
} else if (e.key === 'Enter' && !e.shiftKey) {
} else if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing && e.keyCode !== 229) {
e.preventDefault();
handleSubmit();
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/renderer/hub/TaskInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const TaskInput = forwardRef<TaskInputHandle, TaskInputProps>(function Ta

const onKeyDown = useCallback(
(e: React.KeyboardEvent<HTMLTextAreaElement>) => {
if (e.key === 'Enter' && !e.shiftKey) {
if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing && e.keyCode !== 229) {
e.preventDefault();
submit();
} else if (e.key === 'Escape') {
Expand Down
2 changes: 1 addition & 1 deletion app/src/renderer/logs/LogsApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export function LogsApp(): React.ReactElement {

const onInputKeyDown = useCallback(
(e: React.KeyboardEvent<HTMLTextAreaElement>) => {
if (e.key === 'Enter' && !e.shiftKey) {
if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing && e.keyCode !== 229) {
e.preventDefault();
void sendFollowUp();
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/renderer/pill/Pill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export function Pill(): React.ReactElement {
setAttachments([]);
setAttachError(null);
}
} else if (e.key === 'Enter' && !e.shiftKey) {
} else if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing && e.keyCode !== 229) {
e.preventDefault();
submit();
}
Expand Down