MCPcopy Index your code
hub / github.com/processing/processing / keyTyped

Method keyTyped

app/src/processing/app/ui/ExamplesFrame.java:154–163  ·  view source on GitHub ↗
(KeyEvent e)

Source from the content-addressed store, hash-verified

152 }
153 }
154 public void keyTyped(KeyEvent e) {
155 if (e.getKeyChar() == KeyEvent.VK_ENTER) {
156 DefaultMutableTreeNode node =
157 (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
158 if (node != null && node.isLeaf()) {
159 SketchReference sketch = (SketchReference) node.getUserObject();
160 base.handleOpen(sketch.getPath());
161 }
162 }
163 }
164 });
165
166 tree.addTreeExpansionListener(new TreeExpansionListener() {

Callers

nothing calls this directly

Calls 4

getPathMethod · 0.95
getKeyCharMethod · 0.80
isLeafMethod · 0.80
handleOpenMethod · 0.80

Tested by

no test coverage detected