1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-19 18:05:21 +00:00

manpage: correct "complex" key binding description

The key is never nil if it's invoked through the normal input path. The
key name could be "" if mp_cmd.key_name==NULL. This should not happen,
but there's no strong guarantee in input.c that it cannot happen, so
whatever.
This commit is contained in:
wm4 2019-11-21 22:43:48 +01:00
parent a394d9e3ae
commit eab5457e47

View File

@ -262,8 +262,8 @@ The ``mp`` module is preloaded, although it can be loaded manually with
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.
The name of they key that triggered this, or ``nil`` if invoked
artificially. If the key name is unknown, it's an empty string.
Internally, key bindings are dispatched via the ``script-message-to`` or
``script-binding`` input commands and ``mp.register_script_message``.