Skip to content

Commit 85eb5fb

Browse files
committed
Prevent triggering event twice
1 parent f9a21ff commit 85eb5fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/find/browser/findWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ export class FindWidget extends Widget implements IOverlayWidget, IVerticalSashL
952952
this._findInput.setCaseSensitive(!!this._state.matchCase);
953953
this._findInput.setWholeWords(!!this._state.wholeWord);
954954
this._register(this._findInput.onKeyDown((e) => {
955-
if (e.equals(KeyCode.Enter)) {
955+
if (e.equals(KeyCode.Enter) && !this._codeEditor.getOption(EditorOption.find).findOnType) {
956956
this._state.change({ searchString: this._findInput.getValue() }, true);
957957
}
958958
this._onFindInputKeyDown(e);

0 commit comments

Comments
 (0)