Fix a11y issues #4269

This commit is contained in:
Jason Lin
2022-12-02 18:35:09 +11:00
parent a351f5758a
commit d177acccee
3 changed files with 15 additions and 6 deletions
+4 -1
View File
@@ -246,7 +246,10 @@ export class AccessibilityManager extends Disposable {
private _handleKey(keyChar: string): void {
this._clearLiveRegion();
this._charsToConsume.push(keyChar);
// Only add the char if there is no control character.
if (!/\p{Control}/u.test(keyChar)) {
this._charsToConsume.push(keyChar);
}
}
private _refreshRows(start?: number, end?: number): void {