mirror of https://github.com/FreeTubeApp/FreeTube
Fix cursor moving while navigating search suggestions (#3566)
This commit is contained in:
parent
11fb055a72
commit
3e543aeb24
|
@ -230,6 +230,7 @@ export default defineComponent({
|
|||
this.searchState.showOptions = true
|
||||
const isArrow = event.key === 'ArrowDown' || event.key === 'ArrowUp'
|
||||
if (isArrow) {
|
||||
event.preventDefault()
|
||||
if (event.key === 'ArrowDown') {
|
||||
this.searchState.selectedOption = (this.searchState.selectedOption + 1) % this.visibleDataList.length
|
||||
} else if (event.key === 'ArrowUp') {
|
||||
|
|
Loading…
Reference in New Issue