summaryrefslogtreecommitdiffstats
path: root/input/cmd_list.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-24 16:47:03 +0100
committerwm4 <wm4@nowhere>2014-11-24 16:47:03 +0100
commit89c1525585aae363dc57bd1e4510de8e6da2f480 (patch)
treeb7a57446111cec8330436b05ee05020a7918996e /input/cmd_list.c
parent2a017734a53886568aafc2515b291bd96253e4dc (diff)
downloadmpv-89c1525585aae363dc57bd1e4510de8e6da2f480.tar.bz2
mpv-89c1525585aae363dc57bd1e4510de8e6da2f480.tar.xz
lua: always handle key repeat on the script side
Simpler, and leaves the decision to repeat or not fully to the script (instead of requiring the user to care about it when remapping a script binding).
Diffstat (limited to 'input/cmd_list.c')
-rw-r--r--input/cmd_list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c
index 1edc28d521..d5bd203611 100644
--- a/input/cmd_list.c
+++ b/input/cmd_list.c
@@ -166,7 +166,9 @@ const struct mp_cmd_def mp_cmds[] = {
{ MP_CMD_VO_CMDLINE, "vo_cmdline", { ARG_STRING } },
- { MP_CMD_SCRIPT_BINDING, "script_binding", { ARG_STRING } },
+ { MP_CMD_SCRIPT_BINDING, "script_binding", { ARG_STRING },
+ .allow_auto_repeat = true},
+
{ MP_CMD_SCRIPT_MESSAGE, "script_message", { ARG_STRING }, .vararg = true },
{ MP_CMD_SCRIPT_MESSAGE_TO, "script_message_to", { ARG_STRING, ARG_STRING },
.vararg = true },