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

TextField doesn't allow users to input Chinese and other non-ascii characters

XMLWordPrintable

    • x86
    • linux

      A DESCRIPTION OF THE PROBLEM :
      TextField doesn't allow users to input Chinese and other non-ascii characters

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Write a TextFiled application and then run application on Linux
      try to input Chinese or other non-ascii characters and it won't work


      CUSTOMER SUBMITTED WORKAROUND :
      Currently users could define a class implements InputMethodRequests

      and then

      textArea.setInputMethodRequests(new InputMethodRequestsImplementation());
      textArea.setOnInputMethodTextChanges(event -> {
        if(!event.getommitted().equals("")){
          textArea.insertText(textArea.getCaretPosition(), event.getCommitted());
        }
      });

      therefor we could input Chinese or other non-ascii characters there
      without this piece of code it works on Windows & macOS
      but it doesn't work on Linux

      FREQUENCY : always


            arapte Ambarish Rapte
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: