Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8016255

After implementation of deadkey detection on Linux (etc.?) KEY_PRESSED not coming through IM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u40, 8, 11, 13, 14
    • client-libs
    • None

      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.

            Unassigned Unassigned
            yan Yuri Nesterenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: