Skip to content

Commit

Permalink
update accessibilityBufferActive on focusOut (#4395)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored Feb 1, 2023
1 parent bcfed71 commit 01c9a98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/browser/AccessibilityManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,14 @@ export class AccessibilityManager extends Disposable {
this._accessiblityBuffer.classList.add('xterm-accessibility-buffer');
this.register(addDisposableDomListener(this._accessiblityBuffer, 'keydown', (ev: KeyboardEvent) => {
if (ev.key === 'Tab') {
this._terminal?.textarea?.focus();
this._accessibilityBufferActive = false;
}}
));
this.register(addDisposableDomListener(this._accessiblityBuffer, 'focus',() => this._refreshAccessibilityBuffer()));
this.register(addDisposableDomListener(this._accessiblityBuffer, 'focusout',() => {
this._accessibilityBufferActive = false;
}));


this.register(this._renderRowsDebouncer);
this.register(this._terminal.onResize(e => this._handleResize(e.rows)));
Expand Down

0 comments on commit 01c9a98

Please sign in to comment.