-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
1.3.1, 1.4.2
-
Fix Understood
-
x86
-
windows_98, windows_2000
Name: yyT116575 Date: 06/26/2001
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
Japanese keyboards have two keys which both produce a backslash character.
Usually, one is labeled with a yen symbol, and the other with a normal
backslash. Pressing shift, however, produces different results. Pressing
shift with the yen key will produce a pipe symbol, while the other will
produce an underscore.
Currently, with the Robot class, if a Japanese keyboard user does
Robot robot = new Robot();
robot.keyPress(KeyEvent.VK_SHIFT);
robot.keyPress(KeyEvent.VK_BACK_SLASH);
robot.keyRelease(KeyEvent.VK_SHIFT);
The output will be a pipe character. KeyEvent does not distinguish between the
two backslash keys, so it seems impossible to enter an underscore.
Suggestion: add a KeyEvent.VK_YEN, pressing shift should return a pipe for it.
Then VK_BACKSLASH should return underscore with shift.
(Review ID: 127361)
======================================================================
- duplicates
-
JDK-4857939 two keys producing the same key code in japanese keyboard
-
- Closed
-
- relates to
-
JDK-4760074 Robot cannot type VK_KP_RIGHT on Windows
-
- Open
-
-
JDK-4857421 Should distinguish backslash keys as Left/Right on Ja keyboard
-
- Open
-
-
JDK-4766655 Cannot input underscore '_' in AWT Components with Japanese Keyboard
-
- Resolved
-