src/macosx/classes/com/apple/laf/AquaKeyBindings.java

Print this page




 125         "shift meta KP_UP", DefaultEditorKit.selectionBeginAction,
 126     };
 127 
 128     LateBoundInputMap getTextFieldInputMap() {
 129         return new LateBoundInputMap(new SimpleBinding(commonTextEditorBindings), new SimpleBinding(new String[] {
 130             "DOWN", DefaultEditorKit.endLineAction,
 131             "KP_DOWN", DefaultEditorKit.endLineAction,
 132             "UP", DefaultEditorKit.beginLineAction,
 133             "KP_UP", DefaultEditorKit.beginLineAction,
 134             "shift DOWN", DefaultEditorKit.selectionEndLineAction,
 135             "shift KP_DOWN", DefaultEditorKit.selectionEndLineAction,
 136             "shift UP", DefaultEditorKit.selectionBeginLineAction,
 137             "shift KP_UP", DefaultEditorKit.selectionBeginLineAction,
 138 
 139             "control P", DefaultEditorKit.beginAction,
 140             "control N", DefaultEditorKit.endAction,
 141             "control V", DefaultEditorKit.endAction,
 142         }));
 143     }
 144 















 145     LateBoundInputMap getMultiLineTextInputMap() {
 146         return new LateBoundInputMap(new SimpleBinding(commonTextEditorBindings), new SimpleBinding(new String[] {
 147             "ENTER", DefaultEditorKit.insertBreakAction,
 148             "DOWN", downMultilineAction,
 149             "KP_DOWN", downMultilineAction,
 150             "UP", upMultilineAction,
 151             "KP_UP", upMultilineAction,
 152             "shift DOWN", DefaultEditorKit.selectionDownAction,
 153             "shift KP_DOWN", DefaultEditorKit.selectionDownAction,
 154             "shift UP", DefaultEditorKit.selectionUpAction,
 155             "shift KP_UP", DefaultEditorKit.selectionUpAction,
 156             "alt shift DOWN", DefaultEditorKit.selectionEndParagraphAction,
 157             "alt shift KP_DOWN", DefaultEditorKit.selectionEndParagraphAction,
 158             "alt shift UP", DefaultEditorKit.selectionBeginParagraphAction,
 159             "alt shift KP_UP", DefaultEditorKit.selectionBeginParagraphAction,
 160 
 161             "control P", DefaultEditorKit.upAction,
 162             "control N", DefaultEditorKit.downAction,
 163             "control V", pageDownMultiline,
 164 




 125         "shift meta KP_UP", DefaultEditorKit.selectionBeginAction,
 126     };
 127 
 128     LateBoundInputMap getTextFieldInputMap() {
 129         return new LateBoundInputMap(new SimpleBinding(commonTextEditorBindings), new SimpleBinding(new String[] {
 130             "DOWN", DefaultEditorKit.endLineAction,
 131             "KP_DOWN", DefaultEditorKit.endLineAction,
 132             "UP", DefaultEditorKit.beginLineAction,
 133             "KP_UP", DefaultEditorKit.beginLineAction,
 134             "shift DOWN", DefaultEditorKit.selectionEndLineAction,
 135             "shift KP_DOWN", DefaultEditorKit.selectionEndLineAction,
 136             "shift UP", DefaultEditorKit.selectionBeginLineAction,
 137             "shift KP_UP", DefaultEditorKit.selectionBeginLineAction,
 138 
 139             "control P", DefaultEditorKit.beginAction,
 140             "control N", DefaultEditorKit.endAction,
 141             "control V", DefaultEditorKit.endAction,
 142         }));
 143     }
 144 
 145     LateBoundInputMap getPasswordFieldInputMap() {
 146         return new LateBoundInputMap(new SimpleBinding(getTextFieldInputMap().getBindings()),
 147                 // nullify all the bindings that may discover space characters in the text
 148                 new SimpleBinding(new String[] {
 149                         "alt LEFT", null,
 150                         "alt KP_LEFT", null,
 151                         "alt RIGHT", null,
 152                         "alt KP_RIGHT", null,
 153                         "shift alt LEFT", null,
 154                         "shift alt KP_LEFT", null,
 155                         "shift alt RIGHT", null,
 156                         "shift alt KP_RIGHT", null,
 157                 }));
 158     }
 159     
 160     LateBoundInputMap getMultiLineTextInputMap() {
 161         return new LateBoundInputMap(new SimpleBinding(commonTextEditorBindings), new SimpleBinding(new String[] {
 162             "ENTER", DefaultEditorKit.insertBreakAction,
 163             "DOWN", downMultilineAction,
 164             "KP_DOWN", downMultilineAction,
 165             "UP", upMultilineAction,
 166             "KP_UP", upMultilineAction,
 167             "shift DOWN", DefaultEditorKit.selectionDownAction,
 168             "shift KP_DOWN", DefaultEditorKit.selectionDownAction,
 169             "shift UP", DefaultEditorKit.selectionUpAction,
 170             "shift KP_UP", DefaultEditorKit.selectionUpAction,
 171             "alt shift DOWN", DefaultEditorKit.selectionEndParagraphAction,
 172             "alt shift KP_DOWN", DefaultEditorKit.selectionEndParagraphAction,
 173             "alt shift UP", DefaultEditorKit.selectionBeginParagraphAction,
 174             "alt shift KP_UP", DefaultEditorKit.selectionBeginParagraphAction,
 175 
 176             "control P", DefaultEditorKit.upAction,
 177             "control N", DefaultEditorKit.downAction,
 178             "control V", pageDownMultiline,
 179