Skip to content

Commit

Permalink
fix: key navigation in menu feeling slow b/c bound to keyup instead o…
Browse files Browse the repository at this point in the history
…f keydown

closes #973
  • Loading branch information
tomasklaen committed Sep 3, 2024
1 parent 6de09a6 commit 3733f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uosc/elements/Menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ function Menu:handle_shortcut(shortcut, info)
local actions = selected_item and selected_item.actions or menu.item_actions
local selected_action = actions and menu.action_index and actions[menu.action_index]

if info.event == 'down' then return end
if info.event == 'up' then return end

if key == 'enter' and selected_item then
self:activate_selected_item(shortcut)
Expand Down

0 comments on commit 3733f71

Please sign in to comment.