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 authored and kasper93 committed Oct 14, 2024
1 parent 4ab1ab8 commit ad0c29e
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 @@ -1584,7 +1584,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 ad0c29e

Please sign in to comment.