diff options
author | wm4 <wm4@nowhere> | 2014-05-26 21:49:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-26 21:59:30 +0200 |
commit | 6710527a832a253439cb31862bd568380f41efec (patch) | |
tree | bad6493f7eea0dc51f71b5ab4a6f0be8f6079274 /input/input.c | |
parent | fbe59b23b1060cc98577afc883f9efbed9d8eebd (diff) | |
download | mpv-6710527a832a253439cb31862bd568380f41efec.tar.bz2 mpv-6710527a832a253439cb31862bd568380f41efec.tar.xz |
input: make combined commands repeatable
Binding multiple commands at once where always considered not
repeatable, because the MP_CMD_COMMAND_LIST wasn't considered
repeatable.
Fixes #807 (probably).
Diffstat (limited to 'input/input.c')
-rw-r--r-- | input/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input/input.c b/input/input.c index 6748e5930d..299657f335 100644 --- a/input/input.c +++ b/input/input.c @@ -515,7 +515,7 @@ static void update_mouse_section(struct input_ctx *ictx) } // Called when the currently held-down key is released. This (usually) sends -// the a key-up versiob of the command associated with the keys that were held +// the a key-up version of the command associated with the keys that were held // down. // If the drop_current parameter is set to true, then don't send the key-up // command. Unless we've already sent a key-down event, in which case the @@ -1112,7 +1112,7 @@ mp_cmd_t *mp_input_get_cmd(struct input_ctx *ictx, int time, int peek_only) struct mp_cmd *repeated = check_autorepeat(ictx); if (repeated) { repeated->repeated = true; - if (repeated->def && repeated->def->allow_auto_repeat) { + if (mp_input_is_repeatable_cmd(repeated)) { queue_add_tail(queue, repeated); } else { talloc_free(repeated); |