Directional navigation not working inside ContextMenu
Posted: 11 Nov 2022, 00:45
I have a ContextMenu that doesn't seem to be receiving directional input. When one of the MenuItems has Focus, pressing up or down on a controller or keyboard does not move the Focus. As far as I can tell, the input is consumed before it reached the MenuItem. (For context, the ContextMenu is on a Border, which is inside of a ListBoxItem.)
This functionality was previously working, but seems to have stopped working when we updated from Noesis version 3.1.5-116136 to 3.1.5-11682. I can't find any local changes that would affect this, so I'm currently assuming that something changed between those versions that affected this functionality.
I noticed that there is an open bug regarding ContextMenu inputs:
https://www.noesisengine.com/bugs/view.php?id=2436
I'm not sure if that bug could be responsible for this, as it isn't a GamepadTrigger that we're using, but rather, the default navigational functionality doesn't seem to be going off. But it's similar enough that I thought I ought to note it. I am able to get a KeyTrigger with ActiveOnFocus="True" to work with these MenuItems, however, trying to handle directional input by putting up and down KeyTriggers on every MenuItem to manipulate Focus seems like a messy solution.
This functionality was previously working, but seems to have stopped working when we updated from Noesis version 3.1.5-116136 to 3.1.5-11682. I can't find any local changes that would affect this, so I'm currently assuming that something changed between those versions that affected this functionality.
I noticed that there is an open bug regarding ContextMenu inputs:
https://www.noesisengine.com/bugs/view.php?id=2436
I'm not sure if that bug could be responsible for this, as it isn't a GamepadTrigger that we're using, but rather, the default navigational functionality doesn't seem to be going off. But it's similar enough that I thought I ought to note it. I am able to get a KeyTrigger with ActiveOnFocus="True" to work with these MenuItems, however, trying to handle directional input by putting up and down KeyTriggers on every MenuItem to manipulate Focus seems like a messy solution.