Bug 526

Summary: NEWT KeyPressed undefined key char
Product: [JogAmp] Newt Reporter: jouvieje <jerome.jouvie>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: minor    
Priority: ---    
Version: 1   
Hardware: All   
OS: windows   
Type: --- SCM Refs:
3db4e89cb2c36f63c6d0a8f3450705d1ef3694b0
Workaround: ---

Description jouvieje 2011-11-11 09:56:30 CET
All KeyPressed events from NEWT have an undefined key char, while AWT KeyEvent have a valid key char.
All code based on KeyPressed to get input characters (textfield, ...) will be broken using NEWT.

Always reproductible with JOGL b544 under windows 7, possibly on other os too.

Workaround: use NEWT KeyTyped event instead which have valid key char
Comment 1 Sven Gothel 2011-11-18 09:14:45 CET
Especially on Windows we are technically not able to to deliver the keyChar
at pressed or released.
Commit 3db4e89cb2c36f63c6d0a8f3450705d1ef3694b0 documents this.
However, the same commit fixes keyCode on typed events.