public static final String FOCUS_HEADER = "focusHeader";
}
public SubstanceInputMap getTableAncestorInputMap() {
SubstanceInputMap result = new SubstanceInputMap();
result.put("ctrl C", COPY);
result.put("ctrl V", PASTE);
result.put("ctrl X", CUT);
result.put("COPY", COPY);
result.put("PASTE", PASTE);
result.put("CUT", CUT);
result.put("control INSERT", COPY);
result.put("shift INSERT", PASTE);
result.put("shift DELETE", CUT);
result.put("RIGHT", TableActions.NEXT_COLUMN);
result.put("KP_RIGHT", TableActions.NEXT_COLUMN);
result.put("shift RIGHT", TableActions.NEXT_COLUMN_EXTEND_SELECTION);
result.put("shift KP_RIGHT", TableActions.NEXT_COLUMN_EXTEND_SELECTION);
result.put("ctrl shift RIGHT",
TableActions.NEXT_COLUMN_EXTEND_SELECTION);
result.put("ctrl shift KP_RIGHT",
TableActions.NEXT_COLUMN_EXTEND_SELECTION);
result.put("ctrl RIGHT", TableActions.NEXT_COLUMN_CHANGE_LEAD);
result.put("ctrl KP_RIGHT", TableActions.NEXT_COLUMN_CHANGE_LEAD);
result.put("LEFT", TableActions.PREVIOUS_COLUMN);
result.put("KP_LEFT", TableActions.PREVIOUS_COLUMN);
result.put("shift LEFT", TableActions.PREVIOUS_COLUMN_EXTEND_SELECTION);
result.put("shift KP_LEFT",
TableActions.PREVIOUS_COLUMN_EXTEND_SELECTION);
result.put("ctrl shift LEFT",
TableActions.PREVIOUS_COLUMN_EXTEND_SELECTION);
result.put("ctrl shift KP_LEFT",
TableActions.PREVIOUS_COLUMN_EXTEND_SELECTION);
result.put("ctrl LEFT", TableActions.PREVIOUS_COLUMN_CHANGE_LEAD);
result.put("ctrl KP_LEFT", TableActions.PREVIOUS_COLUMN_CHANGE_LEAD);
result.put("DOWN", TableActions.NEXT_ROW);
result.put("KP_DOWN", TableActions.NEXT_ROW);
result.put("shift DOWN", TableActions.NEXT_ROW_EXTEND_SELECTION);
result.put("shift KP_DOWN", TableActions.NEXT_ROW_EXTEND_SELECTION);
result.put("ctrl shift DOWN", TableActions.NEXT_ROW_EXTEND_SELECTION);
result
.put("ctrl shift KP_DOWN",
TableActions.NEXT_ROW_EXTEND_SELECTION);
result.put("ctrl DOWN", TableActions.NEXT_ROW_CHANGE_LEAD);
result.put("ctrl KP_DOWN", TableActions.NEXT_ROW_CHANGE_LEAD);
result.put("UP", TableActions.PREVIOUS_ROW);
result.put("KP_UP", TableActions.PREVIOUS_ROW);
result.put("shift UP", TableActions.PREVIOUS_ROW_EXTEND_SELECTION);
result.put("shift KP_UP", TableActions.PREVIOUS_ROW_EXTEND_SELECTION);
result.put("ctrl shift UP", TableActions.PREVIOUS_ROW_EXTEND_SELECTION);
result.put("ctrl shift KP_UP",
TableActions.PREVIOUS_ROW_EXTEND_SELECTION);
result.put("ctrl UP", TableActions.PREVIOUS_ROW_CHANGE_LEAD);
result.put("ctrl KP_UP", TableActions.PREVIOUS_ROW_CHANGE_LEAD);
result.put("HOME", TableActions.FIRST_COLUMN);
result.put("shift HOME", TableActions.FIRST_COLUMN_EXTEND_SELECTION);
result.put("ctrl shift HOME", TableActions.FIRST_ROW_EXTEND_SELECTION);
result.put("ctrl HOME", TableActions.FIRST_ROW);
result.put("END", TableActions.LAST_COLUMN);
result.put("shift END", TableActions.LAST_COLUMN_EXTEND_SELECTION);
result.put("ctrl shift END", TableActions.LAST_ROW_EXTEND_SELECTION);
result.put("ctrl END", TableActions.LAST_ROW);
result.put("PAGE_UP", TableActions.SCROLL_UP_CHANGE_SELECTION);
result.put("shift PAGE_UP", TableActions.SCROLL_UP_EXTEND_SELECTION);
result.put("ctrl shift PAGE_UP",
TableActions.SCROLL_LEFT_EXTEND_SELECTION);
result.put("ctrl PAGE_UP", TableActions.SCROLL_LEFT_CHANGE_SELECTION);
result.put("PAGE_DOWN", TableActions.SCROLL_DOWN_CHANGE_SELECTION);
result
.put("shift PAGE_DOWN",
TableActions.SCROLL_DOWN_EXTEND_SELECTION);
result.put("ctrl shift PAGE_DOWN",
TableActions.SCROLL_RIGHT_EXTEND_SELECTION);
result
.put("ctrl PAGE_DOWN",
TableActions.SCROLL_RIGHT_CHANGE_SELECTION);
result.put("TAB", TableActions.NEXT_COLUMN_CELL);
result.put("shift TAB", TableActions.PREVIOUS_COLUMN_CELL);
result.put("ENTER", TableActions.NEXT_ROW_CELL);
result.put("shift ENTER", TableActions.PREVIOUS_ROW_CELL);
result.put("ctrl A", TableActions.SELECT_ALL);
result.put("ctrl SLASH", TableActions.SELECT_ALL);
result.put("ctrl BACK_SLASH", TableActions.CLEAR_SELECTION);
result.put("ESCAPE", TableActions.CANCEL_EDITING);
result.put("F2", TableActions.START_EDITING);
result.put("SPACE", TableActions.ADD_TO_SELECTION);
result.put("ctrl SPACE", TableActions.TOGGLE_AND_ANCHOR);
result.put("shift SPACE", TableActions.EXTEND_TO);
result.put("ctrl shift SPACE", TableActions.MOVE_SELECTION_TO);
result.put("F8", TableActions.FOCUS_HEADER);
return result;
}