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

Input method not enabled when editing TableView cell

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • jfx23
    • javafx
    • None
    • Mac Sonoma 14.5 with standard Japanese input method.

      Ubuntu 22 using IBus and Mozc (requires PR 1080 to enable the IME).

    • generic
    • generic

      The input method editor is not enabled in TableView cells in the Monkey Tester app. When the user double-clicks on a cell a TextField is being created and made the focusOwner at which point the Scene queries it to determine whether InputMethodEvents should be enabled. This all happens before the skin has been created so there are no inputMethodRequests associated with the control so the Scene disables the IME.

      (Note: there seems to be a timing issue which allows this to succeed on rare occasions and enable the IME. But it fails far more often than not.)

      To reproduce
      ----------
      - Switch the keyboard to a language that utilizes an IME composition window (e.g. Japanese)
      - Open the Monkey Tester
      - select Table View and make it editable
      - add some columns (I used 5 Max) and items
      - double click on a cell to edit it
      - type text that requires a composition window

      Results
      ----------
      On Mac you can type individual Japanese characters but will never see a composition window. Depending on the IME Linux can be even more constrained and you can only enter Roman text. Didn't test this on Windows.

            mfox Martin Fox
            mfox Martin Fox
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: