File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3636import cc .arduino .contributions .packages .filters .UpdatablePlatformPredicate ;
3737import cc .arduino .view .NotificationPopup ;
3838import org .apache .logging .log4j .LogManager ;
39- import org .apache .logging .log4j .Logger ;
4039import processing .app .*;
4140
4241import javax .swing .*;
Original file line number Diff line number Diff line change 5050import javax .swing .event .HyperlinkListener ;
5151
5252import cc .arduino .Constants ;
53- import org .apache .logging .log4j .LogManager ;
54- import org .apache .logging .log4j .Logger ;
5553import processing .app .PreferencesData ;
5654import processing .app .Theme ;
5755
@@ -124,10 +122,14 @@ public void mouseClicked(MouseEvent e) {
124122 optionalButton1 .addMouseListener (button1Action );
125123
126124 KeyListener button1Key = new KeyListener () {
125+ // Ignore when the key is typed - only act once the key is released
127126 public void keyTyped (KeyEvent e ) {
127+ // do nothing here, wait until the key is released
128128 }
129129
130+ // Ignore when the key is pressed - only act once the key is released
130131 public void keyPressed (KeyEvent e ) {
132+ // do nothing here, wait until the key is released
131133 }
132134
133135 public void keyReleased (KeyEvent e ) {
You can’t perform that action at this time.
0 commit comments