Bug 668

Summary: Android Newt KeyEvent.getKeyChar returns always uppercase character
Product: [JogAmp] Jogl Reporter: Brice Figureau <brice.figureau>
Component: coreAssignee: Sven Gothel <sgothel>
Severity: major CC: sgothel
Priority: ---    
Version: 2   
Hardware: embedded_arm   
OS: other   
Type: --- SCM Refs:
c9a13b31703302f58100af2a3f437ff7cb8fd010 1f9bff1aab54c399438c735581508ac85c6a29b3
Workaround: ---

Description Brice Figureau 2013-01-16 13:28:11 CET
Android 4.0.3 on Kindle HD7"

When pressing a lowercase letter key on the virtual keyboard (default view of the virtual keyboard), produces an uppercase character.

The internal Android Event to Newt Event converter calls Andoid KeyEvent.getDisplayLabel() to get access to the typed character. Unfortunately this always returns an uppercased letter (which also breaks accented keys).

One possible solution would be to use Android KeyEvent.getUnicodeChar and transform it to a java 'char' by a char cast if value is < 0xffff.