Bug 668 - Android Newt KeyEvent.getKeyChar returns always uppercase character
Summary: Android Newt KeyEvent.getKeyChar returns always uppercase character
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 2
Hardware: embedded_arm other
: --- major
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2013-01-16 13:28 CET by Brice Figureau
Modified: 2013-02-28 15:33 CET (History)
1 user (show)

See Also:
Type: ---
SCM Refs:
c9a13b31703302f58100af2a3f437ff7cb8fd010 1f9bff1aab54c399438c735581508ac85c6a29b3
Workaround: ---


Attachments

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