Skip to content

Commit

Permalink
fix: idle cursor selecting menu actions when navigating with keyboard
Browse files Browse the repository at this point in the history
ref #974
  • Loading branch information
tomasklaen committed Sep 3, 2024
1 parent bc1d326 commit 3621e0b
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 @@ -1374,7 +1374,7 @@ function Menu:render()
rect.ay, rect.by, rect.bx = rect.ay - margin, rect.by + margin, rect.bx + margin

-- Select action on cursor hover
if get_point_to_rectangle_proximity(cursor, rect) == 0 then
if self.mouse_nav and get_point_to_rectangle_proximity(cursor, rect) == 0 then
cursor:zone('primary_click', rect, self:create_action(function(shortcut)
self:activate_selected_item(shortcut, true)
end))
Expand Down

0 comments on commit 3621e0b

Please sign in to comment.