mpv/DOCS
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
..
interface-changes defaults.lua: handle canceled key bindings 2024-06-06 23:38:39 +03:00
man defaults.lua: handle canceled key bindings 2024-06-06 23:38:39 +03:00
client-api-changes.rst DOCS/client-api-changes.rst: fix formatting 2024-04-18 16:13:57 +02:00
compatibility.rst DOCS/compatibility.rst: add requirement when changing default values 2024-05-20 18:07:38 +02:00
compile-windows.md DOCS/compile-windows.md: update Windows compilation documentation 2024-06-05 19:17:49 +02:00
contribute.md DOCS: document the new way to handle interface changes 2024-03-20 22:38:56 +00:00
edl-mpv.rst
encoding.rst
interface-changes.rst DOCS/interface-changes.rst: document loadfile breaking change 2024-05-20 18:07:38 +02:00
mplayer-changes.rst DOCS: make mentions of macOS consistent 2024-02-21 20:46:53 +01:00
release-policy.md DOCS: document the new way to handle interface changes 2024-03-20 22:38:56 +00:00
tech-overview.txt DOCS/tech-overview.txt: add builtin.conf to etc/ description 2024-03-11 21:01:01 +01:00