Skip to content

Commit 606aaee

Browse files
author
Federico Fissore
committed
Toogle comments even using the DIVIDE key on the keypad, so non US keyboard can use the shortcut. Fixes #431 and https://code.google.com/p/arduino/issues/detail?id=76
1 parent 4748e9d commit 606aaee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package processing.app.syntax;
22

33
import org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaDefaultInputMap;
4+
import org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaEditorKit;
45
import org.fife.ui.rtextarea.RTextArea;
56
import org.fife.ui.rtextarea.RTextAreaEditorKit;
67
import processing.app.PreferencesData;
@@ -39,5 +40,7 @@ public SketchTextAreaDefaultInputMap() {
3940

4041
remove(KeyStroke.getKeyStroke(KeyEvent.VK_J, defaultModifier));
4142
}
43+
44+
put(KeyStroke.getKeyStroke(KeyEvent.VK_DIVIDE, defaultModifier), RSyntaxTextAreaEditorKit.rstaToggleCommentAction);
4245
}
4346
}

0 commit comments

Comments
 (0)