1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-19 22:36:55 +00:00

input: fix --no-input-default-bindings

The option did nothing. This was probably broken with 5b38a52.
This commit is contained in:
wm4 2013-08-29 19:06:13 +02:00
parent 64faa8c66b
commit c47bf17c0f

View File

@ -1269,6 +1269,8 @@ static struct cmd_bind *find_any_bind_for_key(struct input_ctx *ictx,
struct active_section *s = &ictx->active_sections[i];
struct cmd_bind *bind = find_bind_for_key_section(ictx, s->name, n, keys);
if (bind) {
if (bind->is_builtin && !ictx->default_bindings)
goto skip;
struct cmd_bind_section *bs = bind->owner;
for (int x = 0; x < n; x++) {
if (MP_KEY_DEPENDS_ON_MOUSE_POS(keys[x]) && bs->mouse_area_set &&