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

Caps Lock doesn't work as expected when using Pinyin Simplified input method

    Details

    • Subcomponent:
    • Resolved In Build:
      b127
    • OS:
      os_x
    • Verification:
      Verified

      Backports

        Description


        Caps Lock doesn't work as expected when using Pinyin Simplified input method
        on OS X

        When Pinyin Simplified input method is selected on OS X, Caps Lock key is
        supposed to switch input to latin letters - that's how it works in native
        applications, e.g. in TextEdit.
        In Java applications, it also switches to input of latin letters, but letters
        are entered in uppercase.

        To reproduce the issue run attached simple program, switch OS input method to
        'Pinyin - Simplified', press Caps Lock, then press 'a' key.
        Expected result - 'a' character appears in text field.
        Actual result - 'A' character appears in text field.

        The issue is reproduced on OS X El Capitan 10.11.4 in latest Java version:
        java version "1.8.0_77"
        Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
        Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)


          Activity

          Hide
          dmarkov Dmitry Markov added a comment -
          testcase for the issue attached
          Show
          dmarkov Dmitry Markov added a comment - testcase for the issue attached
          Hide
          dmarkov Dmitry Markov added a comment -
          Problem description:
          When Pinyin Simplified input method is selected and 'Caps Lock' is on, input is switched to latin letters, but letters are entered in uppercase.

          Fix:
          It is necessary to ignore 'Caps Lock' modifier in CPlatformResponder.handleKeyEvent() method, if Pinyin Simplified input method is selected and 'Caps Lock' is on.
          Show
          dmarkov Dmitry Markov added a comment - Problem description: When Pinyin Simplified input method is selected and 'Caps Lock' is on, input is switched to latin letters, but letters are entered in uppercase. Fix: It is necessary to ignore 'Caps Lock' modifier in CPlatformResponder.handleKeyEvent() method, if Pinyin Simplified input method is selected and 'Caps Lock' is on.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/ee48956a8b54
          User: dmarkov
          Date: 2016-06-27 08:32:13 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/ee48956a8b54 User: dmarkov Date: 2016-06-27 08:32:13 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/ee48956a8b54
          User: amurillo
          Date: 2016-07-13 03:50:56 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/ee48956a8b54 User: amurillo Date: 2016-07-13 03:50:56 +0000
          Hide
          dzhou Dora Zhou added a comment -
          Verified with JDK9 build 134 on Mac10.10, passed.
          Show
          dzhou Dora Zhou added a comment - Verified with JDK9 build 134 on Mac10.10, passed.

            People

            • Assignee:
              dmarkov Dmitry Markov
              Reporter:
              shadowbug Shadow Bug
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: