mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Fixes #2068: Update find and replace strings in state on input event
This commit is contained in:
@@ -61,6 +61,9 @@ export class FindInput extends Widget {
|
||||
private _onKeyDown = this._register(new Emitter<StandardKeyboardEvent>());
|
||||
public onKeyDown: Event<StandardKeyboardEvent> = this._onKeyDown.event;
|
||||
|
||||
private _onInput = this._register(new Emitter<void>());
|
||||
public onInput: Event<void> = this._onInput.event;
|
||||
|
||||
private _onKeyUp = this._register(new Emitter<StandardKeyboardEvent>());
|
||||
public onKeyUp: Event<StandardKeyboardEvent> = this._onKeyUp.event;
|
||||
|
||||
@@ -89,6 +92,7 @@ export class FindInput extends Widget {
|
||||
|
||||
this.onkeydown(this.inputBox.inputElement, (e) => this._onKeyDown.fire(e));
|
||||
this.onkeyup(this.inputBox.inputElement, (e) => this._onKeyUp.fire(e));
|
||||
this.oninput(this.inputBox.inputElement, (e) => this._onInput.fire());
|
||||
}
|
||||
|
||||
public enable(): void {
|
||||
|
||||
Reference in New Issue
Block a user