mirror of
https://github.com/Eugeny/tabby
synced 2024-11-14 17:07:15 +00:00
Update selectorModal.component.ts
This commit is contained in:
parent
4a1d8cdd0d
commit
a26b30f0bc
1 changed files with 2 additions and 0 deletions
|
@ -29,9 +29,11 @@ export class SelectorModalComponent<T> {
|
|||
@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])
|
||||
|
|
Loading…
Reference in a new issue