We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 672ad56 commit 250bce0Copy full SHA for 250bce0
2 files changed
app/src/processing/app/SerialMonitor.java
@@ -46,6 +46,15 @@ public void windowClosing(WindowEvent e) {
46
closeSerialPort();
47
}
48
});
49
+
50
+ // obvious, no?
51
+ KeyStroke wc = Editor.WINDOW_CLOSE_KEYSTROKE;
52
+ getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(wc, "close");
53
+ getRootPane().getActionMap().put("close", new AbstractAction() {
54
+ public void actionPerformed(ActionEvent e) {
55
+ closeSerialPort();
56
+ setVisible(false);
57
+ }});
58
59
getContentPane().setLayout(new BorderLayout());
60
todo.txt
@@ -3,8 +3,6 @@
3
4
PROCESSING 5503 SYNC
5
6
-Don't require save before upload.
7
-
8
Add library keyword highlighting.
9
10
Allow closing of the serial monitor with keyboard short cuts.
0 commit comments