Skip to content

Conversation

@wanghanzhen
Copy link

@wanghanzhen wanghanzhen commented Jan 13, 2026

Fixes #8224

@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

When @ autocomplete shows "No matching items", pressing Enter
should submit the prompt instead of doing nothing.

**Problem:**
- User types `@nonexistentfile` (text that doesn't match any files)
- Autocomplete displays "No matching items"
- Pressing Enter does nothing

**Fix:**
- Remove redundant e.preventDefault() when no matching items exist
- Autocomplete now closes with single Enter press
- Prompt submits immediately
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.

Enter key doesn't submit prompt when @ autocomplete has no matches

1 participant