Using arrow keys in RAP 3.1 context menus [message #1722684] |
Mon, 08 February 2016 04:30  |
Eclipse User |
|
|
|
Hello,
we currently use Selenium for automatic GUI tests.
To select context menu entries the easiest implementation was to send up/down arrow key presses to the browser after opening the context menu.
This worked fine in RAP 3.0, both manually and by Selenium.
In RAP 3.1 (tested in M3, 4 and 5) the key presses are ignored. Only holding the button down for about a second results in a quick traversing over the menu entries - this can not be used to precisely select an entry, though.
Can anyone reproduce this?
Additional info, is that is relevant:
The context menu entries are added as an org.eclipse.ui.popupMenus -> viewerContribution -> action.
The targetID of the viewerContribution leads to an own ContextMenu class that creates an org.eclipse.jface.action.MenuManager.MenuManager(String text, String id) and calls createContextMenu(Control parent) as well as addMenuListener(IMenuListener listener) on it.
Finally the MenuManager gets registered via void org.eclipse.ui.IWorkbenchPartSite.registerContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider).
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04817 seconds