summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-03-26 10:44:57 +0100
committerwm4 <wm4@nowhere>2016-03-26 10:44:57 +0100
commit32fde273d371c834e96010d5944555b84d9d6225 (patch)
treea7ff74b12bee39520351e6fd6b0a7c59676d7b87 /DOCS
parent5843392db5691403345074b24c9b3caae468d4c6 (diff)
downloadmpv-32fde273d371c834e96010d5944555b84d9d6225.tar.bz2
mpv-32fde273d371c834e96010d5944555b84d9d6225.tar.xz
lua: don't require key for mp.add_key_binding()
Requested. The intention is that scripts can provide mappable actions for key bindings without setting a default key.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/lua.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst
index 2e9bfa508f..6b2c5af031 100644
--- a/DOCS/man/lua.rst
+++ b/DOCS/man/lua.rst
@@ -192,7 +192,8 @@ The ``mp`` module is preloaded, although it can be loaded manually with
Register callback to be run on a key binding. The binding will be mapped to
the given ``key``, which is a string describing the physical key. This uses
the same key names as in input.conf, and also allows combinations
- (e.g. ``ctrl+a``).
+ (e.g. ``ctrl+a``). If the key is empty or ``nil``, no physical key is
+ registered, but the user still can create own bindings (see below).
After calling this function, key presses will cause the function ``fn`` to
be called (unless the user remapped the key with another binding).