src/vs/workbench/contrib/terminal/browser/xterm/navigationModeAddon.ts/NavigationModeAddon/_focusRow
class NavigationModeAddon:	private _focusRow(targetRow: number): void {
		if (!this._terminal) {
			return;
		}
		if (!this._terminal?.element) {
			return;
		}
		// Ensure a11y tree exists
		const treeContainer = this._terminal.element.querySelector('.xterm-accessibility-tree');
		if (!treeContainer) {
			return;
		}

		// Check bounds
		if (treeContainer.childElementCount < targetRow || targetRow < 0) {
			return;
		}

		const element = <HTMLElement>treeContainer.childNodes.item(targetRow);
		element.focus();
		const disposable = addDisposableListener(element, 'blur', () => {
			this._navigationModeContextKey.set(false);
			disposable.dispose();
		});
		this._navigationModeContextKey.set(true);
	}