1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00

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.
This commit is contained in:
Guido Cella 2024-10-09 17:01:17 +02:00 committed by Kacper Michajłow
parent 4ab1ab8284
commit ad0c29e5ac

View File

@ -1584,7 +1584,8 @@ local function get_bindings()
{ 'shift+del', handle_del }, { 'shift+del', handle_del },
{ 'ins', handle_ins }, { 'ins', handle_ins },
{ 'shift+ins', function() paste(false) end }, { '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 }, { 'left', function() prev_char() end },
{ 'ctrl+b', function() page_up_or_prev_char() end }, { 'ctrl+b', function() page_up_or_prev_char() end },
{ 'right', function() next_char() end }, { 'right', function() next_char() end },