diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/input/input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/input/input.c b/core/input/input.c index 9771dd0420..e843a88380 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -1346,7 +1346,8 @@ static mp_cmd_t *interpret_key(struct input_ctx *ictx, int code) } // This is a key up event, but the key up command is added by // release_down_cmd(), not by this code. - emit_key &= !(code & MP_KEY_EMIT_ON_UP); + if ((code & MP_KEY_EMIT_ON_UP) && ictx->current_down_cmd) + emit_key = false; // Interpret only maximal point of multibutton event ret = NULL; if (emit_key) |