|
Re: Detecting keys while showing a context menu [message #1060196 is a reply to message #1060156] |
Thu, 23 May 2013 13:09 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
When you get a selection event on a menu item, the SelectionEvent object contains a variable called stateMask, this represents the keybord states if any..
/**
* The state of the keyboard modifier keys at the time
* the event was generated.
*/
public int stateMask;
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
Re: Detecting keys while showing a context menu [message #1060398 is a reply to message #1060202] |
Fri, 24 May 2013 13:25 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
I thought you were talking about a menu or menu item,
Is it a table viewer or any jface viewer?
one possibility is that you can get the actual table or control from the viewer and add a selection listener , so that you can capture that mask and use it in your actual jface selection change event.
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
Powered by
FUDForum. Page generated in 0.03984 seconds