Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » verifyKey not working as printed in the Eclipse article(verifyKey not working as printed in the Eclipse article)
verifyKey not working as printed in the Eclipse article [message #1065863] Fri, 28 June 2013 01:32 Go to next message
Janusz Dalecki is currently offline Janusz Dalecki
Messages: 55
Registered: January 2010
Location: Sydney
Member
Hi,
In the article "Getting Your Feet Wet with the SWT StyledText Widget" there is an example of using verifyKey of the VerifyKeyListener for StyledText widget. The code checks for two chars being pressed <CTRL>+<X> simultaneously - this code just does not work the event handler is always passed event.keyCode with value 0x40000 (SWT.CTRL) and event.keyLocation with value 0x4000 and event.character is always empty.
Can somebody please clarify this for me? I am missing something or this is genuinely SWT bug.

Regards,
Janusz
Re: verifyKey not working as printed in the Eclipse article [message #1066490 is a reply to message #1065863] Tue, 02 July 2013 20:28 Go to previous message
li ran is currently offline li ran
Messages: 11
Registered: June 2013
Junior Member
answered at
http://www.eclipse.org/forums/index.php/t/489598/
Previous Topic:Adding menu to swt table
Next Topic:Where is the information what key has been pressed
Goto Forum:
  


Current Time: Sat Sep 20 05:54:57 GMT 2014

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

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