Skip to content

fix: stop event propagation on Enter key in find and replace inputs#301635

Open
tamuratak wants to merge 1 commit intomicrosoft:mainfrom
tamuratak:add_stop_propagation
Open

fix: stop event propagation on Enter key in find and replace inputs#301635
tamuratak wants to merge 1 commit intomicrosoft:mainfrom
tamuratak:add_stop_propagation

Conversation

@tamuratak
Copy link
Contributor

fix: stop event propagation on Enter key in find and replace inputs. Fix #299353

Copilot AI review requested due to automatic review settings March 14, 2026 00:34
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

Fixes a keybinding double-dispatch in the editor Find/Replace widget by preventing the Ctrl+Enter keydown event from bubbling to the global keybinding listener after it has already been dispatched locally (addresses #299353).

Changes:

  • Stop event propagation for Ctrl+Enter in the Find input keydown handler after dispatching (or inserting a newline).
  • Stop event propagation for Ctrl+Enter in the Replace input keydown handler after dispatching (or inserting a newline).

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.

[Keybinding] Ctrl+Enter in Find/Replace invokes editor.action.replaceOne twice (Windows 11, Korean IME)

3 participants