assertj / assertj/assertj-swing

Modifiers hang when "Invalid key code" is encountered (in Windows)

Open
#71 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.