mirror of https://github.com/mpv-player/mpv
manpage: improve "complex" key binding list of table entries
This commit is contained in:
parent
0a6c09b96f
commit
a394d9e3ae
|
@ -251,12 +251,19 @@ The ``mp`` module is preloaded, although it can be loaded manually with
|
||||||
``complex``
|
``complex``
|
||||||
If set to ``true``, then ``fn`` is called on both key up and down
|
If set to ``true``, then ``fn`` is called on both key up and down
|
||||||
events (as well as key repeat, if enabled), with the first
|
events (as well as key repeat, if enabled), with the first
|
||||||
argument being a table. This table has an ``event`` entry, which
|
argument being a table. This table has the following entries (and
|
||||||
is set to one of the strings ``down``, ``repeat``, ``up`` or
|
may contain undocumented ones):
|
||||||
``press`` (the latter if key up/down can't be tracked). The
|
|
||||||
``is_mouse`` entry tells whether the event was caused by a mouse
|
``event``
|
||||||
button. The ``key_name`` entry contains the name of they key that
|
Set to one of the strings ``down``, ``repeat``, ``up`` or
|
||||||
triggered this, or ``nil`` if unknown or invoked artificially.
|
``press`` (the latter if key up/down can't be tracked).
|
||||||
|
|
||||||
|
``is_mouse``
|
||||||
|
Boolean Whether the event was caused by a mouse button.
|
||||||
|
|
||||||
|
``key_name``
|
||||||
|
The name of they key that triggered this, or ``nil`` if unknown
|
||||||
|
or invoked artificially.
|
||||||
|
|
||||||
Internally, key bindings are dispatched via the ``script-message-to`` or
|
Internally, key bindings are dispatched via the ``script-message-to`` or
|
||||||
``script-binding`` input commands and ``mp.register_script_message``.
|
``script-binding`` input commands and ``mp.register_script_message``.
|
||||||
|
|
Loading…
Reference in New Issue