mpv/DOCS/man
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
..
af.rst m_option: drop support for -del for list options 2023-10-30 16:47:44 +00:00
ao.rst DOCS/man: note that default autoprobe order is unrealiable 2024-05-20 18:07:38 +02:00
changes.rst DOCS: document the new way to handle interface changes 2024-03-20 22:38:56 +00:00
console.rst DOCS/man/console.rst: remove extraneous words 2024-05-21 16:02:03 +02:00
encode.rst DOCS/man: replace legacy option syntax usage 2024-05-24 17:57:43 +00:00
input.rst command: add canceled state to key-binding client message 2024-06-06 23:38:39 +03:00
ipc.rst
javascript.rst scripting: add mp.input.select() 2024-05-07 22:34:22 +02:00
libmpv.rst
lua.rst defaults.lua: handle canceled key bindings 2024-06-06 23:38:39 +03:00
mpv.rst select.lua: add this script 2024-05-12 23:13:48 +02:00
options.rst input: un-hardcode VO dragging 2024-06-04 12:41:51 +02:00
osc.rst {stats,osc}.lua: respect --osd-scale-by-window by default 2024-05-20 18:29:44 +02:00
stats.rst {stats,osc}.lua: respect --osd-scale-by-window by default 2024-05-20 18:29:44 +02:00
vf.rst DOCS/man: replace legacy option syntax usage 2024-05-24 17:57:43 +00:00
vo.rst DOCS/man: note that default autoprobe order is unrealiable 2024-05-20 18:07:38 +02:00