提交 2384f4de 编写于 作者: I isidor

Accessibility: Shift+Tab gets trapped in debug and problems panes.

fixes #116525
上级 e7f29d65
......@@ -148,12 +148,8 @@ export class ActionBar extends Disposable implements IActionRunner {
eventHandled = this.focusNext();
} else if (event.equals(KeyCode.Escape) && this.cancelHasListener) {
this._onDidCancel.fire();
} else if ((event.equals(KeyCode.Tab) || event.equals(KeyMod.Shift | KeyCode.Tab)) && focusedItem instanceof BaseActionViewItem && focusedItem.trapsArrowNavigation) {
if (event.equals(KeyCode.Tab)) {
this.focusNext();
} else {
this.focusPrevious();
}
} else if (event.equals(KeyCode.Tab) && focusedItem instanceof BaseActionViewItem && focusedItem.trapsArrowNavigation) {
this.focusNext();
} else if (this.isTriggerKeyEvent(event)) {
// Staying out of the else branch even if not triggered
if (this._triggerKeys.keyDown) {
......
......@@ -158,7 +158,19 @@ export class ReplFilterActionViewItem extends BaseActionViewItem {
}
focus(): void {
this.filterInputBox.focus();
if (this.filterInputBox) {
this.filterInputBox.focus();
}
}
blur(): void {
if (this.filterInputBox) {
this.filterInputBox.blur();
}
}
setFocusable(): void {
// noop input elements are focusable by default
}
getHistory(): string[] {
......
......@@ -283,6 +283,16 @@ export class MarkersFilterActionViewItem extends BaseActionViewItem {
}
}
blur(): void {
if (this.filterInputBox) {
this.filterInputBox.blur();
}
}
setFocusable(): void {
// noop input elements are focusable by default
}
get trapsArrowNavigation(): boolean {
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册