From 6e7942af5062570694e08ee868fb9ee6004f102f Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 4 Dec 2014 20:59:01 +0100 Subject: [PATCH] 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. --- input/input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/input/input.c b/input/input.c index 7bb13c5c52..96d99e94f9 100644 --- a/input/input.c +++ b/input/input.c @@ -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;