mpv/player/lua
nanahi eeb8e6e451 defaults.lua: handle canceled key bindings
There is a subtle behavior difference for built-in/input.conf key bindings
and key bindings registered by scripts: when a key binding is canceled
(e.g. a mouse button is bound to a command, is pressed down, and then
another key is pressed which is bound to another command), the command is
not invoked if the binding is built-in/input.conf, but is invoked if it's
registered by scripts, because it's handled with a different mechanism,
which gives no way for scripts to detect this.

Fix this by using the newly available canceled flag to detect this.
If a key binding is canceled, the callback is now not invoked unless
the key binding is registered with the complex option. In this situation,
the callback is invoked with the canceled state available so that scripts
can detect and handle this situation.
2024-06-06 23:38:39 +03:00
..
assdraw.lua
auto_profiles.lua auto_profiles.lua: fix some lint warnings 2024-05-12 20:06:39 +02:00
console.lua console.lua: fix lint warnings 2024-06-02 22:26:00 +02:00
defaults.lua defaults.lua: handle canceled key bindings 2024-06-06 23:38:39 +03:00
fzy.lua
input.lua console.lua: don't convert integers for mp.input to string 2024-05-12 23:13:48 +02:00
meson.build select.lua: add this script 2024-05-12 23:13:48 +02:00
options.lua options.lua: fix some lint warnings 2024-05-12 20:06:39 +02:00
osc.lua osc.lua: fix lint warnings 2024-06-02 22:26:00 +02:00
select.lua select.lua: allow ffmpeg to print errors if it fails 2024-05-20 18:32:22 +02:00
stats.lua stats.lua: handle osd-scale-by-window runtime update 2024-05-20 18:29:44 +02:00
ytdl_hook.lua ytdl_hook.lua: fix lint warnings 2024-06-02 22:26:00 +02:00