History

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.

Guido Cella committed 2 years ago

Commit ad0c29e1 parent 4ab1ab81 file · +2 −1Browse files

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

Unified · Split

player/lua/console.lua+2−1
@@ -1584,7 +1584,8 @@ local function get_bindings() · 1583 unmodified lines
1584 { 'shift+del', handle_del },1584 { 'shift+del', handle_del },
1585 { 'ins', handle_ins },1585 { 'ins', handle_ins },
1586 { 'shift+ins', function() paste(false) end },1586 { 'shift+ins', function() paste(false) end },
1587 { 'mbtn_mid', function() paste(false, true) end },1587 { 'mbtn_mid', function() paste(false, true) end },
1588 { 'mbtn_right', function() set_active(false) end },
1588 { 'left', function() prev_char() end },1589 { 'left', function() prev_char() end },
1589 { 'ctrl+b', function() page_up_or_prev_char() end },1590 { 'ctrl+b', function() page_up_or_prev_char() end },
1590 { 'right', function() next_char() end },1591 { 'right', function() next_char() 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