Skip to content

Commit 9c850c3

Browse files
author
Federico Fissore
committed
MacOSX: restored CTRL+A=begin of line and CTRL+E=end of line. Fixes #3800
1 parent 57ed2b2 commit 9c850c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public class SketchTextAreaDefaultInputMap extends RSyntaxTextAreaDefaultInputMa
1515

1616
public SketchTextAreaDefaultInputMap() {
1717
int defaultModifier = getDefaultModifier();
18+
int ctrl = InputEvent.CTRL_MASK;
1819
int alt = InputEvent.ALT_MASK;
1920
int shift = InputEvent.SHIFT_MASK;
2021
boolean isOSX = RTextArea.isOSX();
@@ -54,6 +55,9 @@ public SketchTextAreaDefaultInputMap() {
5455
put(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, 0), DefaultEditorKit.beginLineAction);
5556
put(KeyStroke.getKeyStroke(KeyEvent.VK_END, 0), DefaultEditorKit.endLineAction);
5657
}
58+
59+
put(KeyStroke.getKeyStroke(KeyEvent.VK_A, ctrl), DefaultEditorKit.beginLineAction);
60+
put(KeyStroke.getKeyStroke(KeyEvent.VK_E, ctrl), DefaultEditorKit.endLineAction);
5761
}
5862

5963
put(KeyStroke.getKeyStroke(KeyEvent.VK_DIVIDE, defaultModifier), RSyntaxTextAreaEditorKit.rstaToggleCommentAction);

0 commit comments

Comments
 (0)