diff --git a/src/AccessibilityManager.ts b/src/AccessibilityManager.ts index bb6e08d4..d2fe7e1a 100644 --- a/src/AccessibilityManager.ts +++ b/src/AccessibilityManager.ts @@ -88,6 +88,10 @@ export class AccessibilityManager implements IDisposable { this._rowElements = null; } + public get isNavigationModeActive(): boolean { + return this._navigationMode.isActive; + } + private _onResize(cols: number, rows: number): void { // Grow rows as required for (let i = this._rowContainer.children.length; i < this._terminal.rows; i++) { diff --git a/src/utils/TestUtils.test.ts b/src/utils/TestUtils.test.ts index ee28bd11..89b03530 100644 --- a/src/utils/TestUtils.test.ts +++ b/src/utils/TestUtils.test.ts @@ -3,7 +3,7 @@ * @license MIT */ -import { ITerminal, IBuffer, IBufferSet, IBrowser, ICharMeasure, ISelectionManager, ITerminalOptions, IListenerType, IInputHandlingTerminal, IViewport, ICircularList, ICompositionHelper, ITheme, ILinkifier, IMouseHelper } from '../Interfaces'; +import { ITerminal, IBuffer, IBufferSet, IBrowser, ICharMeasure, ISelectionManager, ITerminalOptions, IListenerType, IInputHandlingTerminal, IViewport, ICircularList, ICompositionHelper, ITheme, ILinkifier, IMouseHelper, IDisposable } from '../Interfaces'; import { LineData } from '../Types'; import { Buffer } from '../Buffer'; import * as Browser from './Browser'; @@ -42,6 +42,9 @@ export class MockTerminal implements ITerminal { off(type: string, listener: IListenerType): void { throw new Error('Method not implemented.'); } + addDisposableListener(type: string, handler: IListenerType): IDisposable { + throw new Error('Method not implemented.'); + } scrollLines(disp: number, suppressScrollEvent: boolean): void { throw new Error('Method not implemented.'); } @@ -193,6 +196,9 @@ export class MockInputHandlingTerminal implements IInputHandlingTerminal { emit(type: string, data?: any): void { throw new Error('Method not implemented.'); } + addDisposableListener(type: string, handler: IListenerType): IDisposable { + throw new Error('Method not implemented.'); + } } export class MockBuffer implements IBuffer { @@ -229,6 +235,9 @@ export class MockRenderer implements IRenderer { emit(type: string, data?: any): void { throw new Error('Method not implemented.'); } + addDisposableListener(type: string, handler: IListenerType): IDisposable { + throw new Error('Method not implemented.'); + } dimensions: IRenderDimensions; setTheme(theme: ITheme): IColorSet { return {}; } onResize(cols: number, rows: number, didCharSizeChange: boolean): void {}