Skip to content

Commit 74e3cf2

Browse files
author
Jackson Kearl
committed
Flip triggeredOnType logic
1 parent 0616326 commit 74e3cf2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/contrib/search/browser/patternInputWidget.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class PatternInputWidget extends Widget {
152152
this._register(this.inputBox.onDidChange(() => {
153153
if (this.searchConfig.searchOnType) {
154154
this._onCancel.fire();
155-
this.searchOnTypeDelayer.trigger(() => this._onSubmit.fire(false), this.searchConfig.searchOnTypeDebouncePeriod);
155+
this.searchOnTypeDelayer.trigger(() => this._onSubmit.fire(true), this.searchConfig.searchOnTypeDebouncePeriod);
156156
}
157157
}));
158158

@@ -170,7 +170,7 @@ export class PatternInputWidget extends Widget {
170170
private onInputKeyUp(keyboardEvent: IKeyboardEvent) {
171171
switch (keyboardEvent.keyCode) {
172172
case KeyCode.Enter:
173-
this._onSubmit.fire(true);
173+
this._onSubmit.fire(false);
174174
return;
175175
case KeyCode.Escape:
176176
this._onCancel.fire();

0 commit comments

Comments
 (0)