mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-06 01:08:25 +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:
parent
a292677108
commit
24916baf70
@ -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) {
|
if ((event.getModifiers() & KeyEvent.META_MASK) != 0) {
|
||||||
//event.consume(); // does nothing
|
//event.consume(); // does nothing
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user