Bug 526 - NEWT KeyPressed undefined key char
Summary: NEWT KeyPressed undefined key char
Status: VERIFIED FIXED
Alias: None
Product: Newt
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All windows
: --- minor
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2011-11-11 09:56 CET by jouvieje
Modified: 2011-12-02 07:59 CET (History)
0 users

See Also:
Type: ---
SCM Refs:
3db4e89cb2c36f63c6d0a8f3450705d1ef3694b0
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.