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

Method keyTyped

ij/src/main/java/ij/ImageJ.java:719–730  ·  view source on GitHub ↗
(KeyEvent e)

Source from the content-addressed store, hash-verified

717 }
718
719 public void keyTyped(KeyEvent e) {
720 char keyChar = e.getKeyChar();
721 int flags = e.getModifiers();
722 //if (IJ.debugMode) IJ.log("keyTyped: char=\"" + keyChar + "\" (" + (int)keyChar
723 // + "), flags= "+Integer.toHexString(flags)+ " ("+KeyEvent.getKeyModifiersText(flags)+")");
724 if (keyChar=='\\' || keyChar==171 || keyChar==223) {
725 if (((flags&Event.ALT_MASK)!=0))
726 doCommand("Animation Options...");
727 else
728 doCommand("Start Animation [\\]");
729 }
730 }
731
732 public void keyReleased(KeyEvent e) {
733 IJ.setKeyUp(e.getKeyCode());

Callers

nothing calls this directly

Calls 2

doCommandMethod · 0.95
getModifiersMethod · 0.80

Tested by

no test coverage detected