Skip to content

Commit

Permalink
6544871: java/awt/event/KeyEvent/KeyTyped/CtrlASCII.html fails from j…
Browse files Browse the repository at this point in the history
…dk b09 on windows.

Backport-of: 791267a0961353693ad6a92d888675b2e2837edc
  • Loading branch information
mrserb committed Aug 21, 2024
1 parent 855480b commit 4fe22e8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jdk/test/java/awt/event/KeyEvent/KeyTyped/CtrlASCII.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,12 @@ public void start ()
}// start()
public void punchCtrlKey( Robot ro, int keyCode ) {
ro.keyPress(KeyEvent.VK_CONTROL);
ro.keyPress(keyCode);
ro.keyRelease(keyCode);
try {
ro.keyPress(keyCode);
ro.keyRelease(keyCode);
}catch(IllegalArgumentException iae) {
System.err.println("skip probably invalid keyCode "+keyCode);
}
ro.keyRelease(KeyEvent.VK_CONTROL);
ro.delay(200);
}
Expand Down

1 comment on commit 4fe22e8

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.