From ad0c29e5acaed727ca16e9df6fbbb4930c12a0da Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Wed, 9 Oct 2024 17:01:17 +0200 Subject: [PATCH] console.lua: close with right click Useful to close the console after it was opened with the mouse. Also fix the spacing of the previous line. --- player/lua/console.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/player/lua/console.lua b/player/lua/console.lua index fb8f2c13cc..a7d85b2456 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -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 },