Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to get keyboard modifiers when klicking a table header
how to get keyboard modifiers when klicking a table header [message #447208] Thu, 09 December 2004 15:15
Yves Harms is currently offline Yves HarmsFriend
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
Previous Topic:browser widget on AIX platform
Next Topic:Menu not showing, even though isVisible() says true
Goto Forum:
  


Current Time: Mon Oct 19 15:59:27 GMT 2020

Powered by FUDForum. Page generated in 0.01805 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top