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 36
36
import cc .arduino .contributions .packages .filters .UpdatablePlatformPredicate ;
37
37
import cc .arduino .view .NotificationPopup ;
38
38
import org .apache .logging .log4j .LogManager ;
39
- import org .apache .logging .log4j .Logger ;
40
39
import processing .app .*;
41
40
42
41
import javax .swing .*;
Original file line number Diff line number Diff line change 50
50
import javax .swing .event .HyperlinkListener ;
51
51
52
52
import cc .arduino .Constants ;
53
- import org .apache .logging .log4j .LogManager ;
54
- import org .apache .logging .log4j .Logger ;
55
53
import processing .app .PreferencesData ;
56
54
import processing .app .Theme ;
57
55
@@ -124,10 +122,14 @@ public void mouseClicked(MouseEvent e) {
124
122
optionalButton1 .addMouseListener (button1Action );
125
123
126
124
KeyListener button1Key = new KeyListener () {
125
+ // Ignore when the key is typed - only act once the key is released
127
126
public void keyTyped (KeyEvent e ) {
127
+ // do nothing here, wait until the key is released
128
128
}
129
129
130
+ // Ignore when the key is pressed - only act once the key is released
130
131
public void keyPressed (KeyEvent e ) {
132
+ // do nothing here, wait until the key is released
131
133
}
132
134
133
135
public void keyReleased (KeyEvent e ) {
You can’t perform that action at this time.
0 commit comments