You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a Japanese IME in the workflow creation popup, confirming a composition with Enter submits the workflow instead of only committing the composed text.
The popup-wide Enter handler appears to submit whenever event.key === "Enter", but it does not guard against IME composition state such as event.isComposing.
Focus the prompt textarea or another text input in the popup.
Enable a Japanese IME.
Type text that requires composition.
Press Enter to confirm the conversion candidate.
Expected behavior
Pressing Enter while IME composition is active should only confirm the conversion. The workflow should not be submitted until composition has finished and the user explicitly submits.
Actual behavior
The Enter key is treated as a submit action during IME confirmation, so the workflow is submitted unexpectedly.
output.mp4
Suspected cause
Both Enter handlers submit on event.key === "Enter" without checking composition state:
Ignore Enter-based submit shortcuts while composition is active, for example by checking event.isComposing and/or the relevant native composition state before calling submit().
Impact
This makes the workflow creation UI unreliable for Japanese IME users and likely affects other IME users as well.
Operating system
macOS
Orca version
1.2.2
Details
Summary
When using a Japanese IME in the workflow creation popup, confirming a composition with Enter submits the workflow instead of only committing the composed text.
The popup-wide Enter handler appears to submit whenever
event.key === "Enter", but it does not guard against IME composition state such asevent.isComposing.MDN reference: https://developer.mozilla.org/ja/docs/Web/API/KeyboardEvent/isComposing
Steps to reproduce
Expected behavior
Pressing Enter while IME composition is active should only confirm the conversion. The workflow should not be submitted until composition has finished and the user explicitly submits.
Actual behavior
The Enter key is treated as a submit action during IME confirmation, so the workflow is submitted unexpectedly.
output.mp4
Suspected cause
Both Enter handlers submit on
event.key === "Enter"without checking composition state:src/renderer/src/components/NewWorkspaceComposerModal.tsxsrc/renderer/src/components/NewWorkspacePage.tsxSuggested fix
Ignore Enter-based submit shortcuts while composition is active, for example by checking
event.isComposingand/or the relevant native composition state before callingsubmit().Impact
This makes the workflow creation UI unreliable for Japanese IME users and likely affects other IME users as well.