Skip to content

Commit bc387b6

Browse files
author
Benjamin Pasero
committed
do not eat keys for dropdowns
1 parent 6fe710d commit bc387b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/base/browser/ui/actionbar/actionbar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,9 @@ export class ActionBar extends EventEmitter implements IActionRunner {
439439
let event = new StandardKeyboardEvent(e);
440440
let eventHandled = true;
441441

442-
if (event.equals(CommonKeybindings.UP_ARROW) || event.equals(CommonKeybindings.LEFT_ARROW)) {
442+
if (event.equals(isVertical ? CommonKeybindings.UP_ARROW : CommonKeybindings.LEFT_ARROW)) {
443443
this.focusPrevious();
444-
} else if (event.equals(CommonKeybindings.DOWN_ARROW) || event.equals(CommonKeybindings.RIGHT_ARROW)) {
444+
} else if (event.equals(isVertical ? CommonKeybindings.DOWN_ARROW : CommonKeybindings.RIGHT_ARROW)) {
445445
this.focusNext();
446446
} else if (event.equals(CommonKeybindings.ESCAPE)) {
447447
this.cancel();

0 commit comments

Comments
 (0)