Skip to main content

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 DaleckiFriend
Messages: 60
Registered: January 2010
Location: Sydney
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.

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 ranFriend
Messages: 11
Registered: June 2013
Junior Member
answered at
Previous Topic:Adding menu to swt table
Next Topic:Where is the information what key has been pressed
Goto Forum:

Current Time: Fri Jun 22 15:42:26 GMT 2018

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

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

Back to the top