Fixes #2068: Update find and replace strings in state on input event

This commit is contained in:
Alex Dima
2016-01-18 22:34:27 +02:00
parent 9bb41b4dcd
commit 357c6dca01
2 changed files with 10 additions and 9 deletions

View File

@@ -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 {