-
Bug
-
Resolution: Fixed
-
P3
-
6, 7u101, 8u92
-
b131
-
x86
-
windows_2000, windows_xp
When SHIFT key is pressed using Robot and some other key is pressed, both key-pressed and key-released is triggered for shift and the new key.
If SHIFT key is pressed, key pressed must be triggered.
When another key like (VK_RIGHT) is pressed and released, no key-pressed/key-released event must be triggered for SHIFT key.
But in WinXP both key-pressed and key-released is triggered for SHIFT, every time some other key is pressed.
Compile and run RobotSelectTest
If key-pressed and key-released is triggered more than once, bug is reproduced.
In solaris, WinNT, Win2K, key-pressed and key-released is triggered only once (towards the beginning key-pressed is triggered for SHIFT and towards the end key-released is triggered)
Because of this problem, its not possible to select a text in TextField using Robot in WinXP. This feature is required for automating some of the test scenarios. There is no feasible work around, as we are trying to select some text in native components as well.
If SHIFT key is pressed, key pressed must be triggered.
When another key like (VK_RIGHT) is pressed and released, no key-pressed/key-released event must be triggered for SHIFT key.
But in WinXP both key-pressed and key-released is triggered for SHIFT, every time some other key is pressed.
Compile and run RobotSelectTest
If key-pressed and key-released is triggered more than once, bug is reproduced.
In solaris, WinNT, Win2K, key-pressed and key-released is triggered only once (towards the beginning key-pressed is triggered for SHIFT and towards the end key-released is triggered)
Because of this problem, its not possible to select a text in TextField using Robot in WinXP. This feature is required for automating some of the test scenarios. There is no feasible work around, as we are trying to select some text in native components as well.
- duplicates
-
JDK-4909137 Robot key action shift+left/shift+right does not select text in JTextField
-
- Closed
-
- relates to
-
JDK-4966137 Robot presses Numpad del key instead of normal Del key
-
- Closed
-