8329756: [macos] "javax/swing/JTable/KeyBoardNavigation.java" fail because most combinations of navigational keys with the Ctrl key do not work
Reviewed-by: abhiscxk, dnguyen
This commit is contained in:
parent
21d1e4d803
commit
916f1aa04f
@ -388,7 +388,9 @@ public class AquaKeyBindings {
|
|||||||
"alt shift TAB", "focusHeader",
|
"alt shift TAB", "focusHeader",
|
||||||
"F8", "focusHeader",
|
"F8", "focusHeader",
|
||||||
"ctrl shift UP", "selectFirstRowExtendSelection",
|
"ctrl shift UP", "selectFirstRowExtendSelection",
|
||||||
"ctrl shift DOWN", "selectLastRowExtendSelection"
|
"ctrl shift DOWN", "selectLastRowExtendSelection",
|
||||||
|
"ctrl shift RIGHT", "selectLastColumnExtendSelection",
|
||||||
|
"ctrl shift LEFT", "selectFirstColumnExtendSelection"
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ import javax.swing.table.TableModel;
|
|||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @key headful
|
* @key headful
|
||||||
* @bug 4112270 8264102
|
* @bug 4112270 8264102 8329756
|
||||||
* @library /java/awt/regtesthelpers
|
* @library /java/awt/regtesthelpers
|
||||||
* @build PassFailJFrame
|
* @build PassFailJFrame
|
||||||
* @summary Test Keyboard Navigation in JTable.
|
* @summary Test Keyboard Navigation in JTable.
|
||||||
@ -178,7 +178,7 @@ public class KeyBoardNavigation {
|
|||||||
1. Refer the below keyboard navigation specs
|
1. Refer the below keyboard navigation specs
|
||||||
(referenced from bug report 4112270).
|
(referenced from bug report 4112270).
|
||||||
2. Check all combinations of navigational keys mentioned below
|
2. Check all combinations of navigational keys mentioned below
|
||||||
and verifying each key combinations against the spec defined.
|
and verify each key combination against the spec defined.
|
||||||
If it does, press "pass", otherwise press "fail".
|
If it does, press "pass", otherwise press "fail".
|
||||||
|
|
||||||
""";
|
""";
|
||||||
@ -270,24 +270,19 @@ public class KeyBoardNavigation {
|
|||||||
up/down
|
up/down
|
||||||
Left/Right Arrow - Deselect current selection;
|
Left/Right Arrow - Deselect current selection;
|
||||||
move focus one cell left/right
|
move focus one cell left/right
|
||||||
FN+Up Arrow/FN+Down Arrow - Deselect current selection;
|
fn+Up/Down Arrow - Deselect current selection;
|
||||||
scroll up/down one JViewport view;
|
scroll up/down one JViewport view;
|
||||||
first visible cell in current column gets focus
|
first visible cell in current column gets focus
|
||||||
Control-FN+Up Arrow/FN+Down Arrow - Deselect current selection;
|
fn - Allows editing in a cell containing information without
|
||||||
move focus and view to
|
|
||||||
first/last cell in current row
|
|
||||||
F2 - Allows editing in a cell containing information without
|
|
||||||
overwriting the information
|
overwriting the information
|
||||||
Esc - Resets the cell content back to the state it was in
|
Esc - Resets the cell content back to the state it was in
|
||||||
before editing started
|
before editing started
|
||||||
Ctrl+A, Ctrl+/ - Select All
|
Cmd+A - Select All
|
||||||
Ctrl+\\ - Deselect all
|
|
||||||
Shift-Up/Down Arrow - Extend selection up/down one row
|
Shift-Up/Down Arrow - Extend selection up/down one row
|
||||||
Shift-Left/Right Arrow - Extend selection left/right one column
|
Shift-Left/Right Arrow - Extend selection left/right one column
|
||||||
FN-Shift Up/Down Arrow - Extend selection to top/bottom of column
|
Ctrl-Shift Up/Down Arrow - Extend selection to top/bottom of row
|
||||||
Shift-PageUp/PageDown - Extend selection up/down one view and scroll
|
Ctrl-Shift Left/Right Arrow - Extend selection to first/last of column
|
||||||
table
|
""";
|
||||||
""";
|
|
||||||
String osName = System.getProperty("os.name").toLowerCase();
|
String osName = System.getProperty("os.name").toLowerCase();
|
||||||
if (osName.startsWith("mac")) {
|
if (osName.startsWith("mac")) {
|
||||||
return MAC_SPECIFIC;
|
return MAC_SPECIFIC;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user