Skip to content

Conversation

@DRunkPiano114
Copy link

@DRunkPiano114 DRunkPiano114 commented Jan 20, 2026

What does this PR do?

Fixes a bug where pressing Enter to confirm IME (Input Method Editor) composition also triggers list item selection.

How did you verify your code works?

  1. run bun dev -- --port 4096 in the root folder
  2. run bun run --cwd packages/app dev in the root folder in another terminal, open the local web app
  3. use Chinese to search models
  4. pressing Enter during composition only confirm IME text

- Add isComposing check to avoid triggering selection during IME input confirmation
Copilot AI review requested due to automatic review settings January 20, 2026 07:41
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where pressing Enter to confirm IME (Input Method Editor) composition in search fields also triggers list item selection. The fix adds isComposing checks to Enter key handlers to distinguish between IME confirmation and actual Enter key presses.

Changes:

  • Added !event.isComposing check to Enter key handler in use-filtered-list hook
  • Added !e.isComposing check to Enter key handler in List component

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/ui/src/hooks/use-filtered-list.tsx Added isComposing check to prevent Enter key from triggering selection during IME composition in the filtered list hook
packages/ui/src/components/list.tsx Added isComposing check to prevent Enter key from triggering selection during IME composition in the List component

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

IME: Enter key triggers list selection during composition

1 participant