Community
Participate
Working Groups
Need new API to tell custom controls whether a menu detect event came from the mouse or the keyboard. If the menu detect came from the keyboard (for example, the user typed shift+F10) then the custom control should set the context menu's location based on the current selection or selected item. This is part of the fix for bug 110005.
Fixed in 3.8/4.2 M6. The new API is a new detail field in MenuDetectEvent that can have one of the following values: SWT.MENU_KEYBOARD SWT.MENU_MOUSE The relevant commits are: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=5e82c59354dbb6becb1ba85948232d6cfb5caae9 http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=832d9f88ad5aef2846c1369515369946b39ad5f1 http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=d4768e1203a5077ab3bf6ed0bdc55f1be7dbe216 http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=cfe6ffcea1d99dc4b4ce3146d2ad4b9c767e7566 http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=43e07e7c95cb3522a72787415e72350f2cd8a6da http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=e1cf3a98bb6cd87d3590664f506dbfd017b28fdb http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=6b083490c307e06e3dbe89efcb32f0c23cd5e466