mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
MacOSX: restored CTRL+A=begin of line and CTRL+E=end of line. Fixes #3800
This commit is contained in:
parent
57ed2b2416
commit
9c850c36e1
@ -15,6 +15,7 @@ public class SketchTextAreaDefaultInputMap extends RSyntaxTextAreaDefaultInputMa
|
||||
|
||||
public SketchTextAreaDefaultInputMap() {
|
||||
int defaultModifier = getDefaultModifier();
|
||||
int ctrl = InputEvent.CTRL_MASK;
|
||||
int alt = InputEvent.ALT_MASK;
|
||||
int shift = InputEvent.SHIFT_MASK;
|
||||
boolean isOSX = RTextArea.isOSX();
|
||||
@ -54,6 +55,9 @@ public class SketchTextAreaDefaultInputMap extends RSyntaxTextAreaDefaultInputMa
|
||||
put(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, 0), DefaultEditorKit.beginLineAction);
|
||||
put(KeyStroke.getKeyStroke(KeyEvent.VK_END, 0), DefaultEditorKit.endLineAction);
|
||||
}
|
||||
|
||||
put(KeyStroke.getKeyStroke(KeyEvent.VK_A, ctrl), DefaultEditorKit.beginLineAction);
|
||||
put(KeyStroke.getKeyStroke(KeyEvent.VK_E, ctrl), DefaultEditorKit.endLineAction);
|
||||
}
|
||||
|
||||
put(KeyStroke.getKeyStroke(KeyEvent.VK_DIVIDE, defaultModifier), RSyntaxTextAreaEditorKit.rstaToggleCommentAction);
|
||||
|
Loading…
Reference in New Issue
Block a user