Skip to content

Commit

Permalink
Fix cursor moving while navigating search suggestions (#3566)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored May 21, 2023
1 parent 11fb055 commit 3e543ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/components/ft-input/ft-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 3e543ae

Please sign in to comment.