Skip to content

Commit df6ef7f

Browse files
committed
KeybindingsSearchWidget: refactor: inline _reset() because it doesn't bring much value
1 parent 3bd5d0c commit df6ef7f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/vs/workbench/contrib/preferences/browser/keybindingWidgets.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,10 @@ export class KeybindingsSearchWidget extends SearchWidget {
6464

6565
this._chords = null;
6666
this._inputValue = '';
67-
68-
this._reset();
6967
}
7068

7169
override clear(): void {
72-
this._reset();
70+
this._chords = null;
7371
super.clear();
7472
}
7573

@@ -83,7 +81,7 @@ export class KeybindingsSearchWidget extends SearchWidget {
8381
}
8482

8583
stopRecordingKeys(): void {
86-
this._reset();
84+
this._chords = null;
8785
this.recordDisposables.clear();
8886
}
8987

@@ -92,10 +90,6 @@ export class KeybindingsSearchWidget extends SearchWidget {
9290
this.inputBox.value = this._inputValue;
9391
}
9492

95-
private _reset() {
96-
this._chords = null;
97-
}
98-
9993
private _onKeyDown(keyboardEvent: IKeyboardEvent): void {
10094
keyboardEvent.preventDefault();
10195
keyboardEvent.stopPropagation();

0 commit comments

Comments
 (0)