@@ -151,7 +151,7 @@ export class AccessibilityManager extends Disposable {
|
|||||||
if (char === '\n') {
|
if (char === '\n') {
|
||||||
this._liveRegionLineCount++;
|
this._liveRegionLineCount++;
|
||||||
if (this._liveRegionLineCount === MAX_ROWS_TO_READ + 1) {
|
if (this._liveRegionLineCount === MAX_ROWS_TO_READ + 1) {
|
||||||
this._liveRegion.textContent += Strings.tooMuchOutput.get();
|
this._liveRegion.textContent = Strings.tooMuchOutput.get();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -203,6 +203,9 @@ export class AccessibilityManager extends Disposable {
|
|||||||
if (this._charsToAnnounce.length === 0) {
|
if (this._charsToAnnounce.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (this._liveRegion.textContent === Strings.tooMuchOutput.get()) {
|
||||||
|
this._clearLiveRegion();
|
||||||
|
}
|
||||||
this._liveRegion.textContent += this._charsToAnnounce;
|
this._liveRegion.textContent += this._charsToAnnounce;
|
||||||
this._charsToAnnounce = '';
|
this._charsToAnnounce = '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user