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] Thu, 27 June 2013 21:32 Go to next message
Janusz Dalecki is currently offline Janusz Dalecki
Messages: 50
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 16: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: Fri Apr 25 02:56:10 EDT 2014

Powered by FUDForum. Page generated in 0.01722 seconds