Skip to content

Commit 6e8283d

Browse files
guidocellakasper93
authored andcommitted
context_menu.lua: add a missing return
The space key selects the current item so it shouldn't also try to activate items with titles starting with space.
1 parent 67330ba commit 6e8283d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

player/lua/context_menu.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ local function activate_shortcut(info)
571571

572572
if info.key_text == " " then
573573
activate_focused_item(true)
574+
return
574575
end
575576

576577
for i, item in ipairs(items[focused_level]) do

0 commit comments

Comments
 (0)