MCPcopy Index your code
hub / github.com/benfry/processing4 / keyTyped

Method keyTyped

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

Source from the content-addressed store, hash-verified

128 }
129 }
130 public void keyTyped(KeyEvent e) {
131 if (e.getKeyChar() == KeyEvent.VK_ENTER) {
132 DefaultMutableTreeNode node =
133 (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
134 if (node != null && node.isLeaf()) {
135 SketchReference sketch = (SketchReference) node.getUserObject();
136 base.handleOpenExample(sketch.getPath(), mode);
137 }
138 }
139 }
140 });
141
142 tree.addTreeExpansionListener(new TreeExpansionListener() {

Callers

nothing calls this directly

Calls 3

getPathMethod · 0.95
isLeafMethod · 0.80
handleOpenExampleMethod · 0.80

Tested by

no test coverage detected