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 11, 2024
1 parent ba3b4ed commit 13f16b5
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 @@ -1583,7 +1583,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 13f16b5

Please sign in to comment.