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.

To download the current JDK release, click here.
7u40Fixed 8 b58Fixed
Related Reports
Relates :  
See the issue 7155378
Implement dead key detection on Mac OS X.

EVALUATION changeset: http://hg.openjdk.java.net/jdk8/awt/jdk/rev/77fdcd3df205

EVALUATION [SQE] Risk: low To test the fix run the test/java/awt/event/KeyEvent/DeadKey/deadKeyMacOSX.java test. [SQE]

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.