mpv/DOCS/interface-changes
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
..
cmd-nonrepeatable.txt input/cmd: add nonrepeatable prefix 2024-05-20 17:47:01 +02:00
dolby-vision-configuration.txt command: add dolby-vision-profile and dolby-vision-level to track-list 2024-05-10 01:26:30 +02:00
example.txt
input-builtin-dragging.txt input: un-hardcode VO dragging 2024-06-04 12:41:51 +02:00
input-dragging-deadzone.txt input: implement VO dragging deadzone 2024-06-04 12:41:51 +02:00
input-select.txt scripting: add mp.input.select() 2024-05-07 22:34:22 +02:00
input-touch-emulate-mouse.txt input: add --input-touch-emulate-mouse option 2024-05-03 16:14:03 +02:00
keybind-cancel.txt defaults.lua: handle canceled key bindings 2024-06-06 23:38:39 +03:00
native-touch.txt options: add --native-touch option 2024-05-03 16:14:03 +02:00
normalize-path.txt command: add normalize-path command 2024-05-05 20:29:27 +02:00
option-info-expects-file.txt player: add option-info/<name>/expects-file 2024-05-12 22:29:40 +02:00
osdscale.txt {stats,osc}.lua: respect --osd-scale-by-window by default 2024-05-20 18:29:44 +02:00
show-in-taskbar.txt DOCS: document --show-in-taskbar option 2024-04-18 00:09:09 +02:00
sub-ass-override-default.txt input.conf: change 'u' binding to cycle between 'force' and default 2024-05-29 17:48:50 +00:00
sub-text-ass-full.txt player/command: add sub-text/ass-full sub-property 2024-04-27 01:19:56 +02:00
sub-text-ass.txt player/command: move sub-text-ass to a sub-property 2024-04-27 01:19:56 +02:00
sub-times.txt command: use property_time() for sub-start and sub-end 2024-04-18 13:11:01 +02:00
touch-pos.txt command: add touch-pos property 2024-05-03 16:14:03 +02:00
track-list-decoder-tag.txt player/command: add track-list/N/decoder 2024-04-18 01:20:32 +02:00
wasapi-exclusive-buffer.txt ao_wasapi: add `--wasapi-exclusive-buffer` option 2024-04-19 02:28:23 +02:00