how to get keyboard modifiers when klicking a table header [message #447208] |
Thu, 09 December 2004 15:15 |
Yves Harms Messages: 80 Registered: July 2009 |
Member |
|
|
Hi,
I'm trying to implement a configuration dialog, that will be opened when
holding down STRG and left klicking on a table header.
The problem: I can't get the pressed key with my selection listener.
In theory the statemask should hold the appropriate information.
tableColumn.addSelectionListener(new SelectionListener(){
public void widgetSelected(SelectionEvent event) {
System.out.println(event.stateMask);
System.out.println(event.stateMask==SWT.MODIFIER_MASK);
System.out.println(event.stateMask==SWT.MOD2);
System.out.println(event.stateMask==SWT.MOD1);
}
output:
0
false
false
false
This applies to Eclipse 3.0.1 and 3.1.0-M3, Platform Windows XP-SP1
Any ideas ?
Yves
|
|
|
Powered by
FUDForum. Page generated in 0.02336 seconds