public static final String INCREMENT = "increment";
public static final String DECREMENT = "decrement";
}
protected SubstanceInputMap getMultilineTextComponentFocusInputMap() {
SubstanceInputMap result = new SubstanceInputMap();
result.put("ctrl C", DefaultEditorKit.copyAction);
result.put("ctrl V", DefaultEditorKit.pasteAction);
result.put("ctrl X", DefaultEditorKit.cutAction);
result.put("COPY", DefaultEditorKit.copyAction);
result.put("PASTE", DefaultEditorKit.pasteAction);
result.put("CUT", DefaultEditorKit.cutAction);
result.put("control INSERT", DefaultEditorKit.copyAction);
result.put("shift INSERT", DefaultEditorKit.pasteAction);
result.put("shift DELETE", DefaultEditorKit.cutAction);
result.put("shift LEFT", DefaultEditorKit.selectionBackwardAction);
result.put("shift KP_LEFT", DefaultEditorKit.selectionBackwardAction);
result.put("shift RIGHT", DefaultEditorKit.selectionForwardAction);
result.put("shift KP_RIGHT", DefaultEditorKit.selectionForwardAction);
result.put("ctrl LEFT", DefaultEditorKit.previousWordAction);
result.put("ctrl KP_LEFT", DefaultEditorKit.previousWordAction);
result.put("ctrl RIGHT", DefaultEditorKit.nextWordAction);
result.put("ctrl KP_RIGHT", DefaultEditorKit.nextWordAction);
result.put("ctrl shift LEFT",
DefaultEditorKit.selectionPreviousWordAction);
result.put("ctrl shift KP_LEFT",
DefaultEditorKit.selectionPreviousWordAction);
result
.put("ctrl shift RIGHT",
DefaultEditorKit.selectionNextWordAction);
result.put("ctrl shift KP_RIGHT",
DefaultEditorKit.selectionNextWordAction);
result.put("ctrl A", DefaultEditorKit.selectAllAction);
result.put("HOME", DefaultEditorKit.beginLineAction);
result.put("END", DefaultEditorKit.endLineAction);
result.put("shift HOME", DefaultEditorKit.selectionBeginLineAction);
result.put("shift END", DefaultEditorKit.selectionEndLineAction);
result.put("UP", DefaultEditorKit.upAction);
result.put("KP_UP", DefaultEditorKit.upAction);
result.put("DOWN", DefaultEditorKit.downAction);
result.put("KP_DOWN", DefaultEditorKit.downAction);
result.put("PAGE_UP", DefaultEditorKit.pageUpAction);
result.put("PAGE_DOWN", DefaultEditorKit.pageDownAction);
result.put("shift PAGE_UP", TextComponentActions.SELECTION_PAGE_UP);
result.put("shift PAGE_DOWN", TextComponentActions.SELECTION_PAGE_DOWN);
result.put("ctrl shift PAGE_UP",
TextComponentActions.SELECTION_PAGE_LEFT);
result.put("ctrl shift PAGE_DOWN",
TextComponentActions.SELECTION_PAGE_RIGHT);
result.put("shift UP", DefaultEditorKit.selectionUpAction);
result.put("shift KP_UP", DefaultEditorKit.selectionUpAction);
result.put("shift DOWN", DefaultEditorKit.selectionDownAction);
result.put("shift KP_DOWN", DefaultEditorKit.selectionDownAction);
result.put("ctrl shift HOME", DefaultEditorKit.selectionBeginAction);
result.put("ctrl shift END", DefaultEditorKit.selectionEndAction);
result.put("ENTER", DefaultEditorKit.insertBreakAction);
result.put("BACK_SPACE", DefaultEditorKit.deletePrevCharAction);
result.put("shift BACK_SPACE", DefaultEditorKit.deletePrevCharAction);
result.put("ctrl H", DefaultEditorKit.deletePrevCharAction);
result.put("DELETE", DefaultEditorKit.deleteNextCharAction);
result.put("ctrl DELETE", DefaultEditorKit.deleteNextWordAction);
result.put("ctrl BACK_SPACE", DefaultEditorKit.deletePrevWordAction);
result.put("RIGHT", DefaultEditorKit.forwardAction);
result.put("KP_RIGHT", DefaultEditorKit.forwardAction);
result.put("LEFT", DefaultEditorKit.backwardAction);
result.put("KP_LEFT", DefaultEditorKit.backwardAction);
result.put("TAB", DefaultEditorKit.insertTabAction);
result.put("ctrl BACK_SLASH", TextComponentActions.UNSELECT);
result.put("ctrl HOME", DefaultEditorKit.beginAction);
result.put("ctrl END", DefaultEditorKit.endAction);
result.put("ctrl T", TextComponentActions.NEXT_LINK);
result.put("ctrl shift T", TextComponentActions.PREVIOUS_LINK);
result.put("ctrl SPACE", TextComponentActions.ACTIVATE_LINK);
result.put("control shift O",
TextComponentActions.TOGGLE_COMPONENT_ORIENTATION);
return result;
};