We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fe710d commit bc387b6Copy full SHA for bc387b6
1 file changed
src/vs/base/browser/ui/actionbar/actionbar.ts
@@ -439,9 +439,9 @@ export class ActionBar extends EventEmitter implements IActionRunner {
439
let event = new StandardKeyboardEvent(e);
440
let eventHandled = true;
441
442
- if (event.equals(CommonKeybindings.UP_ARROW) || event.equals(CommonKeybindings.LEFT_ARROW)) {
+ if (event.equals(isVertical ? CommonKeybindings.UP_ARROW : CommonKeybindings.LEFT_ARROW)) {
443
this.focusPrevious();
444
- } else if (event.equals(CommonKeybindings.DOWN_ARROW) || event.equals(CommonKeybindings.RIGHT_ARROW)) {
+ } else if (event.equals(isVertical ? CommonKeybindings.DOWN_ARROW : CommonKeybindings.RIGHT_ARROW)) {
445
this.focusNext();
446
} else if (event.equals(CommonKeybindings.ESCAPE)) {
447
this.cancel();
0 commit comments