From a26b30f0bc8eb726a660a0e63d958451f0cc7a68 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Mon, 4 Oct 2021 07:13:50 +0200 Subject: [PATCH] Update selectorModal.component.ts --- tabby-core/src/components/selectorModal.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tabby-core/src/components/selectorModal.component.ts b/tabby-core/src/components/selectorModal.component.ts index 4012e6b1..02da460a 100644 --- a/tabby-core/src/components/selectorModal.component.ts +++ b/tabby-core/src/components/selectorModal.component.ts @@ -29,9 +29,11 @@ export class SelectorModalComponent { @HostListener('keyup', ['$event']) onKeyUp (event: KeyboardEvent): void { if (event.key === 'ArrowUp') { this.selectedIndex-- + event.preventDefault() } if (event.key === 'ArrowDown') { this.selectedIndex++ + event.preventDefault() } if (event.key === 'Enter') { this.selectOption(this.filteredOptions[this.selectedIndex])