Skip to content

Commit

Permalink
New editor on MacOSX: since CMD+J is known as "jump to selection" and…
Browse files Browse the repository at this point in the history
… the editor has no such feature, CMD+J is disabled on mac. See esp8266#3098
  • Loading branch information
Federico Fissore committed May 15, 2015
1 parent d3b3dbb commit 670ad37
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ public SketchTextAreaDefaultInputMap() {

if (isOSX) {
put(KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE, defaultModifier), SketchTextAreaEditorKit.rtaDeleteLineToCursorAction);

put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, defaultModifier), DefaultEditorKit.beginAction);
put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, defaultModifier), DefaultEditorKit.endAction);

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

0 comments on commit 670ad37

Please sign in to comment.