This has been working great but I have one issue. When I press the encoder, the menu pops up.
Using the popup catcher idea, I send right arrow to go to a submenu and return to select. This is easy when the popup menu has all submenus, and each supbmenu has only items. The popup catcher sends right arrow on first press, return on the second. But the popup catcher has no idea what menus are currently displayed. So if a menu were open that has both submenus and items, the catcher is unaware and may send the wrong keystroke.
Is there a way check what menu/item is selected when the popup catcher get the command? Alternatively is there a way to make a popup menu either select the item with a right arrow or move to the selected sub menu even if a return is pressed?
(dont see the docs how menus are supposed to respond to keyboard input)