Skip to content

Commit

Permalink
Merge branch 'master' into clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar authored Sep 12, 2023
2 parents 9ab0cd6 + f69fcb9 commit 8183d1d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/browser/AccessibilityManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import * as Strings from 'browser/LocalizableStrings';
import { ITerminal, IRenderDebouncer } from 'browser/Types';
import { isMac } from 'common/Platform';
import { TimeBasedDebouncer } from 'browser/TimeBasedDebouncer';
import { Disposable, toDisposable } from 'common/Lifecycle';
import { ScreenDprMonitor } from 'browser/ScreenDprMonitor';
Expand Down Expand Up @@ -133,26 +132,12 @@ export class AccessibilityManager extends Disposable {
this._liveRegion.textContent += Strings.tooMuchOutput;
}
}

// Only detach/attach on mac as otherwise messages can go unaccounced
if (isMac) {
if (this._liveRegion.textContent && this._liveRegion.textContent.length > 0 && !this._liveRegion.parentNode) {
setTimeout(() => {
this._accessibilityContainer.appendChild(this._liveRegion);
}, 0);
}
}
}
}

private _clearLiveRegion(): void {
this._liveRegion.textContent = '';
this._liveRegionLineCount = 0;

// Only detach/attach on mac as otherwise messages can go unaccounced
if (isMac) {
this._liveRegion.remove();
}
}

private _handleKey(keyChar: string): void {
Expand Down

0 comments on commit 8183d1d

Please sign in to comment.