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

[ComboBox] Editable ComboBox doesn't handle IM events if it gets focus through focus traversal keys.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 8u20, 8u40
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Environment:

      Windows 7

      Description

      Steps to reproduce:
      1. Run HelloComboBox demo
      2. Press Tab key several times to traverse focus to an editable ComboBox. Then the input caret blinks on the TextField of the ComboBox, and it seems the focus is on the TextField.
      3. Invoke Chinese or Japanese input method.
      4. Type soming to compose Chinese or Japanese text.
       
      Problem: the composing text appears at the top-left of the screen, which means the ComboBox allows IME but doesn't handle input method events, the events are handled by the OS. (focus-traverse.png)

      But if clicking mouse on the TextField of the ComboBox to get focus, it works fine, the composing text appears on the spot of the caret. (mouse-click-focus.png)

      It looks like when using focus traversal keys, the focus is actually on the ComboBox itself, not on the TextField. The ComboBox itself doesn't handle IM events.

        Attachments

        1. focus-traverse.png
          66 kB
          Jenny Huang
        2. mouse-click-focus.png
          104 kB
          Jenny Huang

          Issue Links

            Activity

              People

              Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              jennyh Jenny Huang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: