-
Bug
-
Resolution: Unresolved
-
P3
-
None
-
6
-
Cause Known
-
sparc
-
solaris_9
platform: win 2000;
locale: english;
enable russian keyboard layout;
java: 1.5.0-beta b51
To reproduce error you can either try running attached code
or
change layout to RU and use robot to keyPress, keyRelease "[" and "]" onto some swing component.
Exception in thread "main" java.lang.IllegalArgumentException: Invalid key code
at sun.awt.windows.WRobotPeer.keyPress(Native Method)
at java.awt.Robot.keyPress(Robot.java:220)
at KeyTest.performTest(KeyTest.java:82)
at KeyTest.<init>(KeyTest.java:30)
at KeyTest.main(KeyTest.java:34)
==============
Behavior is also questionable for ";", "'", ",", "/".
"," corresponds to a russian "b", sometimes it gets printed by Robot correctly, when it is first in the queue of chars, but when it isn't it fails as well.
###@###.### 2004-06-01
==============
German layout has similar issues.
The following robot events either cause the exception (see above) or are mapped incorrectly: `, -, =, [, ], z, x, /. Capitilizing any of these keys with "Shift" doesn't work either.
###@###.### 2004-06-02
locale: english;
enable russian keyboard layout;
java: 1.5.0-beta b51
To reproduce error you can either try running attached code
or
change layout to RU and use robot to keyPress, keyRelease "[" and "]" onto some swing component.
Exception in thread "main" java.lang.IllegalArgumentException: Invalid key code
at sun.awt.windows.WRobotPeer.keyPress(Native Method)
at java.awt.Robot.keyPress(Robot.java:220)
at KeyTest.performTest(KeyTest.java:82)
at KeyTest.<init>(KeyTest.java:30)
at KeyTest.main(KeyTest.java:34)
==============
Behavior is also questionable for ";", "'", ",", "/".
"," corresponds to a russian "b", sometimes it gets printed by Robot correctly, when it is first in the queue of chars, but when it isn't it fails as well.
###@###.### 2004-06-01
==============
German layout has similar issues.
The following robot events either cause the exception (see above) or are mapped incorrectly: `, -, =, [, ], z, x, /. Capitilizing any of these keys with "Shift" doesn't work either.
###@###.### 2004-06-02
- duplicates
-
JDK-5055990 Robot throws java.lang.IllegalArgumentException
- Closed
-
JDK-5055996 Robot maps a character incorrectly
- Closed
- relates to
-
JDK-6299348 Zero keycode returned in keyPressed and keyReleased for some keys in non-english layout - Win32
- Closed