Skip to content

Commit

Permalink
Don't insert newline in serial monitor keyboard shortcut (Lars J. Nie…
Browse files Browse the repository at this point in the history
  • Loading branch information
damellis committed Mar 11, 2012
1 parent a292677 commit 24916ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/processing/app/EditorListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ public boolean keyPressed(KeyEvent event) {
}
}

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;
Expand Down

0 comments on commit 24916ba

Please sign in to comment.