menu: Disallow navigation to a disabled entry via *any* key
authorMatt Fleming <matt.fleming@intel.com>
Fri, 12 Oct 2012 11:59:32 +0000 (12:59 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 12 Oct 2012 12:20:27 +0000 (13:20 +0100)
commitac3f053411c096dea192e9572c7cb3abc32d8b6e
treeb78b41840fedfe68d1c73a940ec504fba4b0b196
parent592a8fe37795c760b1b724f9771e5f0f3d7d3706
menu: Disallow navigation to a disabled entry via *any* key

Generalise the fix from commit c823574f53c1 ("menu: Don't highlight
disabled entries") as it only handled the case where we navigated to a
disabled last entry by pressing Ctrl + N or the DOWN arrow
key. Obviously, we can navigate with other keys such as END, PGDN, etc
so we need to handle all cases.

Reported-by: Ady <ady-sf@hotmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/menu/menumain.c