| Popup menu, accelerators won't work [message #1533292]
||Sun, 28 December 2014 13:27
| Michail Vokhm
Registered: November 2014
I'm new in SWT, try to do some simple excercises.
I found that accelerator keys (Reyboard shortcuts) dont'work in a popup menu as they do in a menubar. I have not found any discussion or solution of the issue in the internet, even no hints, except for the single question in this forum (https://www.eclipse.org/forums/index.php/t/505996/), that is left without answer.
The Item2 is an item of the main menu, shotcut works fine:
item2.setAccelerator(SWT.MOD1 | '2');
The item3 is a pop-up menu item, the menu and item itself works fine, but the accelerator don't work:
item3.setAccelerator(SWT.MOD1 | '3');
The full code is attached.
Can anybody explain what's the matter? Is such a behaviour implemented by intention? Is my way wrong? What is the right way - how should one make shortcuts in popup menu work?
Powered by FUDForum
. Page generated in 0.02616 seconds