History

console.lua: update selected item under the cursor on mouse wheel action

Kacper Michajłow committed 2 years ago

Commit 0c5420b1 parent 98ed9721 file · +5 −0Browse files

Showing the changes to player/lua/console.lua (1 of 1 file). Show all

Unified · Split

player/lua/console.lua+5−0
@@ -926,6 +926,11 @@ local function move_history(amount, is_wheel) · 925 unmodified lines
926 math.max(first_match_to_print + amount, 1), #matches - max_lines + 2)926 math.max(first_match_to_print + amount, 1), #matches - max_lines + 2)
927 end927 end
928 928
929 local item = determine_hovered_item()
930 if item then
931 selected_match = item
932 end
933
929 update()934 update()
930 return935 return
931 end936 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t