mpv/player
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
..
javascript console.lua: don't convert integers for mp.input to string 2024-05-12 23:13:48 +02:00
lua defaults.lua: handle canceled key bindings 2024-06-06 23:38:39 +03:00
audio.c player: put speed adjustment back into playing_audio_pts 2024-05-29 13:48:40 +00:00
client.c player/client: fix typo in description of MPV_ERROR_UNINITIALIZED 2024-05-08 18:52:40 +02:00
client.h
command.c command: add canceled state to key-binding client message 2024-06-06 23:38:39 +03:00
command.h options: add --input-commands option 2024-03-21 14:48:53 +00:00
configfiles.c player: replace get_current_time with get_playback_time in some spots 2024-05-29 13:48:40 +00:00
core.h player/playloop: remove now unused get_percent_pos() 2024-06-03 19:16:35 +02:00
external_files.c misc/language: move mp_guess_lang_from_filename() here 2024-05-10 01:22:31 +02:00
external_files.h misc/language: move mp_guess_lang_from_filename() here 2024-05-10 01:22:31 +02:00
javascript.c osdep/dirent: add implementation for Windows SDK build 2024-05-06 22:01:17 +02:00
loadfile.c player/loadfile: match language and subcodes 2024-05-09 17:12:55 +02:00
lua.c select.lua: add this script 2024-05-12 23:13:48 +02:00
main.c player/main: concat string at compile time 2024-06-05 19:16:35 +02:00
meson.build
misc.c win32: quantize taskbar playback position into uint8 range 2024-06-03 19:16:35 +02:00
osd.c osd: don't use get_percent_pos function 2024-06-03 15:14:40 +02:00
playloop.c player/playloop: remove now unused get_percent_pos() 2024-06-03 19:16:35 +02:00
screenshot.c image_writer: fix TOCTOU in screenshot filename generation 2024-03-19 19:30:27 +01:00
screenshot.h
scripting.c select.lua: add this script 2024-05-12 23:13:48 +02:00
sub.c sub: avoid unneeded calls to is_animated 2024-06-04 12:29:13 +00:00
video.c player: put speed adjustment back into playing_audio_pts 2024-05-29 13:48:40 +00:00