Convert internal key event usages

This commit is contained in:
Daniel Imms
2019-04-04 00:45:57 -04:00
parent 629238ae70
commit 2f8d49c74d
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ export class AccessibilityManager extends Disposable {
this.register(this._terminal.addDisposableListener('a11y.char', (char) => this._onChar(char)));
this.register(this._terminal.addDisposableListener('linefeed', () => this._onChar('\n')));
this.register(this._terminal.addDisposableListener('a11y.tab', spaceCount => this._onTab(spaceCount)));
this.register(this._terminal.addDisposableListener('key', keyChar => this._onKey(keyChar)));
this.register(this._terminal.onKey(e => this._onKey(e.key)));
this.register(this._terminal.addDisposableListener('blur', () => this._clearLiveRegion()));
// TODO: Maybe renderer should fire an event on terminal when the characters change and that
// should be listened to instead? That would mean that the order of events are always