I have tests which use Robot and make calls to keyPress() which do not call the corresponding keyRelease(). This can be a big problem because as far as the underlying operating system is concerned, the key is still being "held down". If the native GUI operates differently with that key down (for instance w/ CDE, if the Control key is held down, you can't drag windows around), running such a test can cause strange and undesireable behavior.
The Robot.keyPress() and Robot.mousePress() methods should have some encouragement for developers to make sure they call the corresponding keyRelease()/mouseRelease() methods.
The Robot.keyPress() and Robot.mousePress() methods should have some encouragement for developers to make sure they call the corresponding keyRelease()/mouseRelease() methods.
- relates to
-
JDK-4771102 TEST_BUG: javax/swing/JRootPane/bug4670486.java failed
-
- Closed
-