JDK-8154816 : Caps Lock doesn't work as expected when using Pinyin Simplified input method
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt:i18n
  • Affected Version: 8u77
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2016-04-21
  • Updated: 2016-10-13
  • Resolved: 2016-06-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u112Fixed 9 b127Fixed
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) 



Comments
Verified with JDK9 build 134 on Mac10.10, passed.
05-09-2016

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.
16-06-2016

testcase for the issue attached
16-06-2016