Skip to content

Commit 00b059d

Browse files
Federico Fissoresandeepmistry
Federico Fissore
authored andcommitted
MacOSX: Home/End key preference was coded backwards. Fixed. See arduino#3715
1 parent a093f77 commit 00b059d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public SketchTextAreaDefaultInputMap() {
5050
put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, defaultModifier | shift), DefaultEditorKit.selectionBeginAction);
5151
put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, defaultModifier | shift), DefaultEditorKit.selectionEndAction);
5252

53-
if (PreferencesData.getBoolean("editor.keys.home_and_end_to_start_end_of_doc")) {
53+
if (!PreferencesData.getBoolean("editor.keys.home_and_end_beginning_end_of_doc")) {
5454
put(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, 0), DefaultEditorKit.beginLineAction);
5555
put(KeyStroke.getKeyStroke(KeyEvent.VK_END, 0), DefaultEditorKit.endLineAction);
5656
}

0 commit comments

Comments
 (0)