mirror of https://github.com/mpv-player/mpv
input: fix --no-input-default-bindings
The option did nothing. This was probably broken with 5b38a52
.
This commit is contained in:
parent
fd2ead5080
commit
c89b162462
|
@ -1298,6 +1298,8 @@ static struct cmd_bind *find_any_bind_for_key(struct input_ctx *ictx,
|
||||||
struct active_section *s = &ictx->active_sections[i];
|
struct active_section *s = &ictx->active_sections[i];
|
||||||
struct cmd_bind *bind = find_bind_for_key_section(ictx, s->name, n, keys);
|
struct cmd_bind *bind = find_bind_for_key_section(ictx, s->name, n, keys);
|
||||||
if (bind) {
|
if (bind) {
|
||||||
|
if (bind->is_builtin && !ictx->default_bindings)
|
||||||
|
goto skip;
|
||||||
struct cmd_bind_section *bs = bind->owner;
|
struct cmd_bind_section *bs = bind->owner;
|
||||||
for (int x = 0; x < n; x++) {
|
for (int x = 0; x < n; x++) {
|
||||||
if (MP_KEY_DEPENDS_ON_MOUSE_POS(keys[x]) && bs->mouse_area_set &&
|
if (MP_KEY_DEPENDS_ON_MOUSE_POS(keys[x]) && bs->mouse_area_set &&
|
||||||
|
|
Loading…
Reference in New Issue