Skip to content

Commit

Permalink
Fix menu item is selected twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kadiryazici committed Mar 17, 2024
1 parent 41ac3ac commit 94f57a2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/MenuItems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ function setupHandle(ctx: Context) {
useKey('up,shift+tab', () => ctx.focusPrevious(), { input: true, repeat: true, prevent: true })
useKey('down,tab', () => ctx.focusNext(), { input: true, repeat: true, prevent: true })
useKey(
'enter',
() => ctx.selectFocusedItem(),
{ input: true },
)
ctx.onFocus((meta, item, el) => {
el?.focus()
})
Expand Down

0 comments on commit 94f57a2

Please sign in to comment.