diff options
-rw-r--r-- | DOCS/man/lua.rst | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 829bcafd0c..a9c0e9423e 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -294,21 +294,22 @@ The ``mp`` module is preloaded, although it can be loaded manually with argument being a table. This table has the following entries (and may contain undocumented ones): - ``event`` - Set to one of the strings ``down``, ``repeat``, ``up`` or - ``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 invoked - artificially. If the key name is unknown, it's an empty string. - - ``key_text`` - Text if triggered by a text key, otherwise ``nil``. See - description of ``script-binding`` command for details (this - field is equivalent to the 5th argument). + ``event`` + Set to one of the strings ``down``, ``repeat``, ``up`` or + ``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 + invoked artificially. If the key name is unknown, it's an + empty string. + + ``key_text`` + Text if triggered by a text key, otherwise ``nil``. See + description of ``script-binding`` command for details (this + field is equivalent to the 5th argument). Internally, key bindings are dispatched via the ``script-message-to`` or ``script-binding`` input commands and ``mp.register_script_message``. |