(KeyEvent e)
| 119 | add("Center", textArea); |
| 120 | textArea.addKeyListener(new KeyAdapter() { |
| 121 | public void keyPressed (KeyEvent e) { |
| 122 | //IJ.log("keyPressed: "+e); |
| 123 | if (e.getKeyCode()==KeyEvent.VK_R) { |
| 124 | int flags = e.getModifiers(); |
| 125 | boolean control = (flags & KeyEvent.CTRL_MASK) != 0; |
| 126 | boolean meta = (flags & KeyEvent.META_MASK) != 0; |
| 127 | if (control || meta) |
| 128 | runCode(); |
| 129 | } |
| 130 | } |
| 131 | }); |
| 132 | GUI.scale(this); |
| 133 | pack(); |
nothing calls this directly
no test coverage detected