Skip to content

Commit

Permalink
console.lua: close with right click
Browse files Browse the repository at this point in the history
Useful to close the console after it was opened with the mouse.

Also fix the spacing of the previous line.
  • Loading branch information
guidocella committed Oct 9, 2024
1 parent 8bf5548 commit d92c518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion player/lua/console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,8 @@ local function get_bindings()
{ 'shift+del', handle_del },
{ 'ins', handle_ins },
{ 'shift+ins', function() paste(false) end },
{ 'mbtn_mid', function() paste(false, true) end },
{ 'mbtn_mid', function() paste(false, true) end },
{ 'mbtn_right', function() set_active(false) end },
{ 'left', function() prev_char() end },
{ 'ctrl+b', function() page_up_or_prev_char() end },
{ 'right', function() next_char() end },
Expand Down

0 comments on commit d92c518

Please sign in to comment.