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

Method keyTyped

app/src/processing/app/ui/SketchbookFrame.java:116–125  ·  view source on GitHub ↗
(KeyEvent e)

Source from the content-addressed store, hash-verified

114 }
115
116 public void keyTyped(KeyEvent e) {
117 if (e.getKeyChar() == KeyEvent.VK_ENTER) {
118 DefaultMutableTreeNode node =
119 (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
120 if (node != null && node.isLeaf()) {
121 SketchReference sketch = (SketchReference) node.getUserObject();
122 base.handleOpen(sketch.getPath());
123 }
124 }
125 }
126 });
127
128 final int border = Toolkit.zoom(5);

Callers

nothing calls this directly

Calls 3

getPathMethod · 0.95
isLeafMethod · 0.80
handleOpenMethod · 0.80

Tested by

no test coverage detected