summaryrefslogtreecommitdiffstats
path: root/TOOLS/mpconsole
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2024-05-12 21:17:46 +0200
committerKacper Michajłow <kasper93@gmail.com>2024-05-12 23:13:48 +0200
commit367a6b561af42d425a97c9441a6dcb3ae41d2d73 (patch)
tree8795186d5d00992e5e88fe808e69b0737e778bc0 /TOOLS/mpconsole
parent30fd3c1a9600d1dadf6f0027c6294e296d325152 (diff)
downloadmpv-367a6b561af42d425a97c9441a6dcb3ae41d2d73.tar.bz2
mpv-367a6b561af42d425a97c9441a6dcb3ae41d2d73.tar.xz
console.lua: close when pressing enter with input.select
When you select an item, due to the submit handler being called asynchronously, the default item list is redrawn before the console closes, which is jarring. Fix this by always closing the console as soon as enter is pressed, as keeping it open is unlikely to be useful with a fuzzy selector (unlike with input.get() where it can be used e.g. to implement a Lua REPL). If desired we can later add a close_on_submit flag defaulting to true. Also fix a crash when pressing enter without any match.
Diffstat (limited to 'TOOLS/mpconsole')
0 files changed, 0 insertions, 0 deletions