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

InputMethodEvents are not enabled for text input controls

    XMLWordPrintable

Details

    • b18
    • generic
    • generic

    Backports

      Description

        Normally the IME is enabled by default on controls that accept text input. This is not working in JavaFX 20. No OnInputMethodEvent handler is being installed so when the Scene is establishing focus it’s not calling into the platform to enable InputMethodEvents. I’ve confirmed that this was working in JavaFX 19.

        To reproduce open any JavaFX app that contains a TextField or TextArea and try to enter, say, Japanese text. On a Mac there's an easier test if you're using a US keyboard: press Option+e followed by e. You should see an accent followed by an accented e. If you don't see the initial accent it's because the Scene hasn't enabled the IME. I've only tested those two controls, the bug may affect others. I have confirmed this is cross-platform.


        Attachments

          Issue Links

            Activity

              People

                angorya Andy Goryachev
                mfox Martin Fox
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: