JDK-8016255 : After implementation of deadkey detection on Linux (etc.?) KEY_PRESSED not coming through IM
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7u40,8,11,13,14
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • Submitted: 2013-06-10
  • Updated: 2021-12-20
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
I'm attaching for convenience two small applications: one with AWT TextArea and another with JTextArea.
Use jdk8 b92 or something close to this.
Running any of this applications on Linux (I have Ubuntu 12.04), you will observe uniform behavior pressing and releasing keys with English (standard US) or e.g. regular Russian layout: all three KEY_PRESSED,  KEY_TYPED, and KEY_RELEASED are coming in due order.
However if you switch to US alternative international layout with dead keys and press for instance ` and e, you will get e grave (good) but no KEY_PRESSED neither in AWT nor Swing and no KEY_TYPED in AWT.

Apparently input method handler does intercept KeyPressed and swallows it, posting  InputMethodEvents. 
Perhaps this is non-issue: we live this way with Oriental languages without complains -- but asymmetric behavior in AWT and Swing may be fixed, I hope.