Rate limit row refresh, tweak live region

This commit is contained in:
Daniel Imms
2018-01-05 07:39:45 -08:00
parent 6d1064fc01
commit bb830eb1ae
3 changed files with 44 additions and 9 deletions
+2 -1
View File
@@ -166,9 +166,10 @@ export class InputHandler implements IInputHandler {
* Horizontal Tab (HT) (Ctrl-I).
*/
public tab(): void {
const originalX = this._terminal.buffer.x;
this._terminal.buffer.x = this._terminal.buffer.nextStop();
if (this._terminal.options.screenReaderMode) {
this._terminal.emit('a11y.tab');
this._terminal.emit('a11y.tab', this._terminal.buffer.x - originalX);
}
}