I need a way to programmatically select the first item in the context menu and give it focus so that I can keyboard navigate it. This is required for the search box in ensemble. I have tried contextMenu.setFocus(true) which seems like it should do it but it dosn't work.Need way to select first item in a context menu.
It seems to work if I have previously moused over the menu, otherwise it doesn't.
It seems to work if I have previously moused over the menu, otherwise it doesn't.
- duplicates
-
JDK-8113766 SplitMenuButton: keyboard navigation does not work
- Closed