Skip to content

Commit

Permalink
manpage: correct "complex" key binding description
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wm4 committed Nov 22, 2019
1 parent a394d9e commit eab5457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DOCS/man/lua.rst
Expand Up @@ -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``.
Expand Down

0 comments on commit eab5457

Please sign in to comment.