mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 13:21:13 +00:00
input: add a hack to fix keyboard navigation with dvd/bd menu
If the user has LEFT/RIGHT/etc. bound in his input.conf, then these were overriding the menu keys in dvdnav mode. This hack works because the dvdnav crap happens to be the only user of MP_INPUT_ON_TOP. If it finds a default key binding in the dvdnav menu section, it will use that, instead of continuing search and possibly finding the user key bindings meant for normal playback.
This commit is contained in:
parent
4979f2f452
commit
6e7942af50
@ -445,6 +445,8 @@ static struct cmd_bind *find_any_bind_for_key(struct input_ctx *ictx,
|
||||
}
|
||||
if (s->flags & MP_INPUT_EXCLUSIVE)
|
||||
break;
|
||||
if (best_bind && (s->flags & MP_INPUT_ON_TOP))
|
||||
break;
|
||||
}
|
||||
|
||||
return best_bind;
|
||||
|
Loading…
Reference in New Issue
Block a user