1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-17 06:52:18 +01:00

Don't insert newline in serial monitor keyboard shortcut (Lars J. Nielsen)

http://code.google.com/p/arduino/issues/detail?id=279
This commit is contained in:
David Mellis 2012-03-11 13:50:47 -04:00
parent a292677108
commit 24916baf70

View File

@ -122,6 +122,14 @@ public class EditorListener {
}
}
if ((event.getModifiers() & KeyEvent.CTRL_MASK) != 0) {
// Consume ctrl-m(carriage return) keypresses
if (code == KeyEvent.VK_M) {
event.consume(); // does nothing
return false;
}
}
if ((event.getModifiers() & KeyEvent.META_MASK) != 0) {
//event.consume(); // does nothing
return false;