MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / keyPressed

Method keyPressed

ij/src/main/java/ij/plugin/frame/Recorder.java:121–130  ·  view source on GitHub ↗
(KeyEvent e)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 2

runCodeMethod · 0.95
getModifiersMethod · 0.80

Tested by

no test coverage detected