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
This commit is contained in:
Federico Fissore 2015-06-03 09:32:09 +02:00
parent 7f478b20ac
commit 054a901b99
1 changed files with 6 additions and 0 deletions

View File

@ -52,5 +52,11 @@ public class SketchTextAreaDefaultInputMap extends RSyntaxTextAreaDefaultInputMa
}
put(KeyStroke.getKeyStroke(KeyEvent.VK_DIVIDE, defaultModifier), RSyntaxTextAreaEditorKit.rstaToggleCommentAction);
put(KeyStroke.getKeyStroke(KeyEvent.VK_KP_LEFT, 0), DefaultEditorKit.backwardAction);
put(KeyStroke.getKeyStroke(KeyEvent.VK_KP_RIGHT, 0), DefaultEditorKit.forwardAction);
put(KeyStroke.getKeyStroke(KeyEvent.VK_KP_DOWN, 0), DefaultEditorKit.downAction);
put(KeyStroke.getKeyStroke(KeyEvent.VK_KP_UP, 0), DefaultEditorKit.upAction);
}
}