From 0a78a61d897918c1f013a3d7d308c5a3939c53cc Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 20 Nov 2014 23:41:01 +0100 Subject: input: add a prefix to make any binding act on key repeat The fact that it's a generic command prefix that is parsed even when using the client API is a bit unclean (because this flag makes sense for actual key-bindings only), but it's less code this way. --- input/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'input/input.c') diff --git a/input/input.c b/input/input.c index 52c28123ef..cdfb507b34 100644 --- a/input/input.c +++ b/input/input.c @@ -883,7 +883,8 @@ mp_cmd_t *mp_input_read_cmd(struct input_ctx *ictx) struct mp_cmd *ret = queue_remove_head(&ictx->cmd_queue); if (!ret) { ret = check_autorepeat(ictx); - if (ret) + // (if explicitly repeated, don't let command.c ignore it) + if (ret && !(ret->flags & MP_ALLOW_REPEAT)) ret->repeated = true; } if (ret && ret->mouse_move) { -- cgit v1.2.3