JDK-7196547 : [macosx] Implement dead key detection for KeyEvent
Type:Bug
Component:client-libs
Sub-Component:java.awt
Affected Version:8
Priority:P4
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2012-09-06
Updated:2013-08-08
Resolved:2012-09-25
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
EVALUATION
[SQE]
Risk: low
To test the fix run the test/java/awt/event/KeyEvent/DeadKey/deadKeyMacOSX.java
test.
[SQE]
14-09-2012
EVALUATION
The characters method from the NSEvent class returns an empty string for dead keys.
The fix uses the UCKeyTranslate() method to know a dead key state from the key code and key modifiers on the first step,
and dead key state and space key to know the dead key char actual value on the second step.