8292062: misc javax/swing tests failing
Reviewed-by: prr
This commit is contained in:
parent
49133809c2
commit
83dc2e3e45
@ -724,6 +724,8 @@ public class SynthLookAndFeel extends BasicLookAndFeel {
|
||||
table.put("Menu.shortcutKeys",
|
||||
new int[] {
|
||||
SwingUtilities2.getSystemMnemonicKeyMask(),
|
||||
SwingUtilities2.setAltGraphMask(
|
||||
SwingUtilities2.getSystemMnemonicKeyMask())
|
||||
});
|
||||
|
||||
// enabled antialiasing depending on desktop settings
|
||||
|
@ -50,7 +50,7 @@ import static javax.swing.UIManager.getInstalledLookAndFeels;
|
||||
/*
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 4618767
|
||||
* @bug 4618767 8292062
|
||||
* @summary This test confirms that typing a letter while a JList has focus now makes the selection
|
||||
* not jump to the item whose text starts with that letter if that typed letter is accompanied
|
||||
* by modifier keys such as ALT or CTRL(eg: ALT+F).
|
||||
@ -117,8 +117,8 @@ public class JListSelectedElementTest {
|
||||
}
|
||||
|
||||
// Now operate Menu using Mnemonics, different key combinations for different OSes.
|
||||
// For most OSes it's ALT+F; on macOS it's ALT+CNTRL+F except for Nimbus LaF.
|
||||
if (isMac && !laf.contains("Nimbus")) {
|
||||
// For most OSes it's ALT+F; on macOS it's ALT+CNTRL+F.
|
||||
if (isMac) {
|
||||
hitKeys(KeyEvent.VK_ALT, KeyEvent.VK_CONTROL, FILE_MENU);
|
||||
} else {
|
||||
hitKeys(KeyEvent.VK_ALT, FILE_MENU);
|
||||
|
@ -50,7 +50,7 @@ import static javax.swing.UIManager.getInstalledLookAndFeels;
|
||||
/*
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 4618767
|
||||
* @bug 4618767 8292062
|
||||
* @summary This test confirms that typing a letter while a JTree has focus now makes the selection
|
||||
* not jump to the item whose text starts with that letter if that typed letter is accompanied
|
||||
* by modifier keys such as ALT or CTRL(eg: ALT+F).
|
||||
@ -107,8 +107,8 @@ public class JTreeSelectedElementTest {
|
||||
}
|
||||
|
||||
// Now operate Menu using Mnemonics, different key combinations for different OSes.
|
||||
// For most OSes it's ALT+F; on macOS it's ALT+CNTRL+F except for Nimbus LaF.
|
||||
if (isMac && !laf.contains("Nimbus")) {
|
||||
// For most OSes it's ALT+F; on macOS it's ALT+CNTRL+F.
|
||||
if (isMac) {
|
||||
hitKeys(KeyEvent.VK_ALT, KeyEvent.VK_CONTROL, FILE_MENU);
|
||||
} else {
|
||||
hitKeys(KeyEvent.VK_ALT, FILE_MENU);
|
||||
|
@ -24,7 +24,7 @@
|
||||
/*
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8194873
|
||||
* @bug 8194873 8292062
|
||||
* @requires (os.family == "Windows")
|
||||
* @summary Checks that right ALT (ALT_GRAPH) key works on Swing components
|
||||
* @run main RightAltKeyTest
|
||||
|
Loading…
Reference in New Issue
Block a user