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

InputMethodEvents are not enabled for text input controls

XMLWordPrintable

    • b18
    • generic
    • generic

        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.


          1. IMEBug.java
            0.9 kB
            Martin Fox
          2. Screenshot 2023-02-06 at 08.50.33.png
            44 kB
            Andy Goryachev

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

                Created:
                Updated:
                Resolved: