Skip to content

Commit

Permalink
Make Cmd+Shift+Left/Right select from cursor to start/end of line (OS…
Browse files Browse the repository at this point in the history
… X).

Instead of selecting the entire line.
  • Loading branch information
damellis committed Jun 4, 2015
1 parent cdae13c commit 1bd1c14
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public SketchTextAreaDefaultInputMap() {
put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, defaultModifier), DefaultEditorKit.beginAction);
put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, defaultModifier), DefaultEditorKit.endAction);

put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, defaultModifier | shift), DefaultEditorKit.selectLineAction);
put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, defaultModifier | shift), DefaultEditorKit.selectLineAction);
put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, defaultModifier | shift), DefaultEditorKit.selectionBeginLineAction);
put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, defaultModifier | shift), DefaultEditorKit.selectionEndLineAction);

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

Expand Down

0 comments on commit 1bd1c14

Please sign in to comment.