From 21f2468d67e11eff7ede0d85fa6f4ab5c4f7de84 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 Nov 2019 23:01:56 +0100 Subject: input: add text produced by key to script key events Particularly for "any_unicode" mappings, so they don't have to special-case keys like '#' and ' ', which are normally mapped to symbolic names for input.conf reasons. (Though admittedly, this is a pretty minor thing, since API users could map these manually.) --- DOCS/man/lua.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'DOCS/man/lua.rst') diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 8861552562..2900a5393c 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -265,6 +265,11 @@ The ``mp`` module is preloaded, although it can be loaded manually with 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``. -- cgit v1.2.3