assertj / assertj/assertj-swing
Modifiers hang when "Invalid key code" is encountered (in Windows)
Open
bug
import from fest-swing
Major
- Dominant language
- Java
- Stars
- 121
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
_Issue by **[Morten Breum Mikkelsen](http://jira.codehaus.org/secure/ViewProfile.jspa?name=mortenbreum)** from Tue, 29 Jun 2010 06:11:21 -0500_
_Originally opened as http://jira.codehaus.org/browse/FEST-368_
---
When a test execution dies on an exception like the one below produced by trying to press VK_COLON on a danish keyboard, the Shift-key is stuck afterwards in Windows.
The modifier keys states should be restored when a keypress fails...
java.lang.IllegalArgumentException: Invalid key code '513'
at org.fest.swing.core.RobotEventGenerator.pressKey(RobotEventGenerator.java:116)
at org.fest.swing.core.BasicRobot.doPressKey(BasicRobot.java:633)
at org.fest.swing.core.BasicRobot.keyPressAndRelease(BasicRobot.java:618)
at org.fest.swing.core.BasicRobot.pressAndReleaseKeys(BasicRobot.java:607)
---
votes (original issue): 0
watches (original issue): 1
Contributor guide
Assessment
This issue has not been assessed yet.