mirror of https://github.com/noisymime/Arduino.git
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
This commit is contained in:
parent
4748e9df5e
commit
606aaee668
|
@ -1,6 +1,7 @@
|
||||||
package processing.app.syntax;
|
package processing.app.syntax;
|
||||||
|
|
||||||
import org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaDefaultInputMap;
|
import org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaDefaultInputMap;
|
||||||
|
import org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaEditorKit;
|
||||||
import org.fife.ui.rtextarea.RTextArea;
|
import org.fife.ui.rtextarea.RTextArea;
|
||||||
import org.fife.ui.rtextarea.RTextAreaEditorKit;
|
import org.fife.ui.rtextarea.RTextAreaEditorKit;
|
||||||
import processing.app.PreferencesData;
|
import processing.app.PreferencesData;
|
||||||
|
@ -39,5 +40,7 @@ public class SketchTextAreaDefaultInputMap extends RSyntaxTextAreaDefaultInputMa
|
||||||
|
|
||||||
remove(KeyStroke.getKeyStroke(KeyEvent.VK_J, defaultModifier));
|
remove(KeyStroke.getKeyStroke(KeyEvent.VK_J, defaultModifier));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
put(KeyStroke.getKeyStroke(KeyEvent.VK_DIVIDE, defaultModifier), RSyntaxTextAreaEditorKit.rstaToggleCommentAction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue