Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
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) ======================================================================
|