From 94f57a240439238a4bcd400a16cadb9ca2dc5e62 Mon Sep 17 00:00:00 2001 From: kadiryazici Date: Sun, 17 Mar 2024 11:56:59 +0300 Subject: [PATCH] Fix menu item is selected twice --- src/components/MenuItems.vue | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/components/MenuItems.vue b/src/components/MenuItems.vue index a7d9adf..a4476dd 100644 --- a/src/components/MenuItems.vue +++ b/src/components/MenuItems.vue @@ -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() })