Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8311922: [macOS] right-Option key fails to generate release event #15432

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/jdk/java/awt/event/KeyEvent/OptionKeyEventTest.java
Original file line number Diff line number Diff line change
@@ -54,8 +54,8 @@ public class OptionKeyEventTest extends JFrame
private static final String newline = System.getProperty("line.separator");
private static final String INSTRUCTIONS =
"This test checks if the key events for the left and right\n" +
"option keys are correct. To complete the test, click on the \n" +
"OptionKeyEventTest window's typing area at the top to focus it.\n" +
"option keys are correct. To complete the test, ensure the\n" +
"OptionKeyEventTest window's typing area is focused.\n" +
"Press and release the left option key. Then press and release\n" +
"the right option key. Confirm in the display area and pass the\n" +
"test if these are correct, otherwise this test fails: \n\n" +
@@ -84,6 +84,7 @@ private static void createAndShowGUI()
PassFailJFrame.addTestWindow(frame);
PassFailJFrame.positionTestWindow(frame,
PassFailJFrame.Position.HORIZONTAL);
typingArea.requestFocus();
});
}

@@ -96,6 +97,7 @@ private void addComponentsToPane() {

displayArea = new JTextArea();
displayArea.setEditable(false);
displayArea.setFocusable(false);
JScrollPane scrollPane = new JScrollPane(displayArea);
scrollPane.setPreferredSize(new Dimension(375, 125));