Skip to content

Commit 1bd1c14

Browse files
committed
Make Cmd+Shift+Left/Right select from cursor to start/end of line (OS X).
Instead of selecting the entire line.
1 parent cdae13c commit 1bd1c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public SketchTextAreaDefaultInputMap() {
3939
put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, defaultModifier), DefaultEditorKit.beginAction);
4040
put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, defaultModifier), DefaultEditorKit.endAction);
4141

42-
put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, defaultModifier | shift), DefaultEditorKit.selectLineAction);
43-
put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, defaultModifier | shift), DefaultEditorKit.selectLineAction);
42+
put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, defaultModifier | shift), DefaultEditorKit.selectionBeginLineAction);
43+
put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, defaultModifier | shift), DefaultEditorKit.selectionEndLineAction);
4444

4545
remove(KeyStroke.getKeyStroke(KeyEvent.VK_J, defaultModifier));
4646

0 commit comments

Comments
 (0)