summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-29 01:36:43 +0100
committerwm4 <wm4@nowhere>2015-12-29 01:36:43 +0100
commitb5d0195023eba84e70cf5253cc383a59dd77e220 (patch)
tree63b0812d88850afeb4d1507a4fb349410805689d
parentb47bf06f9734c6a7c0a6b95721a9e3200d0f6bbb (diff)
downloadmpv-b5d0195023eba84e70cf5253cc383a59dd77e220.tar.bz2
mpv-b5d0195023eba84e70cf5253cc383a59dd77e220.tar.xz
manpage: lua: fix command names
Both variants work, but the ones with "-" are preferred now.
-rw-r--r--DOCS/man/lua.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst
index c89cfc622e..4d47774319 100644
--- a/DOCS/man/lua.rst
+++ b/DOCS/man/lua.rst
@@ -198,7 +198,7 @@ The ``mp`` module is preloaded, although it can be loaded manually with
be called (unless the user remapped the key with another binding).
The ``name`` argument should be a short symbolic string. It allows the user
- to remap the key binding via input.conf using the ``script_message``
+ to remap the key binding via input.conf using the ``script-message``
command, and the name of the key binding (see below for
an example). The name should be unique across other bindings in the same
script - if not, the previous binding with the same name will be
@@ -220,8 +220,8 @@ The ``mp`` module is preloaded, although it can be loaded manually with
has an ``is_mouse`` entry, which tells whether the event was caused
by a mouse button.
- Internally, key bindings are dispatched via the ``script_message_to`` or
- ``script_binding`` input commands and ``mp.register_script_message``.
+ Internally, key bindings are dispatched via the ``script-message-to`` or
+ ``script-binding`` input commands and ``mp.register_script_message``.
Trying to map multiple commands to a key will essentially prefer a random
binding, while the other bindings are not called. It is guaranteed that
@@ -244,7 +244,7 @@ The ``mp`` module is preloaded, although it can be loaded manually with
::
- y script_binding something
+ y script-binding something
This will print the message when the key ``y`` is pressed. (``x`` will
@@ -255,7 +255,7 @@ The ``mp`` module is preloaded, although it can be loaded manually with
::
- y script_binding fooscript.something
+ y script-binding fooscript.something
``mp.add_forced_key_binding(...)``
This works almost the same as ``mp.add_key_binding``, but registers the