Skip to content

Fix terminal find bar swallowing IME Enter key - #1

Closed
y-agatsuma wants to merge 1 commit into
837-browser-find-in-pagefrom
fix-terminal-find-ime
Closed

y-agatsuma wants to merge 1 commit into
837-browser-find-in-pagefrom
fix-terminal-find-ime

Conversation

@y-agatsuma

@y-agatsuma y-agatsuma commented Mar 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes the terminal find bar intercepting Enter during Japanese IME composition, causing the input to be lost instead of confirmed.

Stacked on manaflow-ai#875.

Changes

  • Replace .backport.onKeyPress(.return) with .onSubmit in SurfaceSearchOverlay
  • onSubmit only fires after IME composition is committed, so Enter correctly confirms input
  • Shift+Return for previous match still works via NSEvent.modifierFlags check

Test plan

  • Terminal Cmd+F → type Japanese → Enter confirms IME input
  • Enter (no IME) navigates to next match
  • Shift+Enter navigates to previous match
  • Esc closes find bar

Screeshot

https://cleanshot.com/share/S7PcQwKj

Replace .backport.onKeyPress(.return) with .onSubmit so that
Enter during IME composition confirms the input instead of
triggering find-next. Matches the browser find bar fix.
@y-agatsuma y-agatsuma closed this Mar 5, 2026
@y-agatsuma
y-agatsuma deleted the fix-terminal-find-ime branch March 5, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant