Skip to content

Commit 054a901

Browse files
author
Federico Fissore
committed
New editor: keypad arrows were ignored. Added bindings to make them work like
normal arrows. No modifiers attached, so no shift/ctrl/etc combination: it screws up text Fixes #2317
1 parent 7f478b2 commit 054a901

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/src/processing/app/syntax/SketchTextAreaDefaultInputMap.java

+6
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,11 @@ public SketchTextAreaDefaultInputMap() {
5252
}
5353

5454
put(KeyStroke.getKeyStroke(KeyEvent.VK_DIVIDE, defaultModifier), RSyntaxTextAreaEditorKit.rstaToggleCommentAction);
55+
56+
put(KeyStroke.getKeyStroke(KeyEvent.VK_KP_LEFT, 0), DefaultEditorKit.backwardAction);
57+
put(KeyStroke.getKeyStroke(KeyEvent.VK_KP_RIGHT, 0), DefaultEditorKit.forwardAction);
58+
put(KeyStroke.getKeyStroke(KeyEvent.VK_KP_DOWN, 0), DefaultEditorKit.downAction);
59+
put(KeyStroke.getKeyStroke(KeyEvent.VK_KP_UP, 0), DefaultEditorKit.upAction);
60+
5561
}
5662
}

0 commit comments

Comments
 (0)