|
| Re: Same accelerator key for multiple SWT widgets [message #649484 is a reply to message #649228] |
Wed, 19 January 2011 07:47  |
 |
Lakshmi Shanmugam Messages: 271 Registered: July 2009 Location: India |
Senior Member |
|
|
Hi,
SWT doesn't support toggling between widgets when the same mnemonic is set for multiple widgets in the same shell. When a accelerator key is pressed, SWT looks for a match in the Shell's widgets and stops when it finds the first match.
However you can emulate the toggling behavior by listening to the SWT.Traverse event and checking the event.detail field for SWT.TRAVERSE_MNEMONIC. You should set the event.doit field = false when you want the focus to move to the next matching widget.
HTH,
Lakshmi
Lakshmi P Shanmugam
|
|
|
Powered by
FUDForum. Page generated in 0.01395 seconds