MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / showKeyEvent

Method showKeyEvent

src/test/Test_Event.java:290–294  ·  view source on GitHub ↗
(KeyEvent e)

Source from the content-addressed store, hash-verified

288 int n;
289
290 protected void showKeyEvent(KeyEvent e) {
291 String source = /** @j2sNative (xxx = e).bdata.jqevent.originalEvent.target.id || */
292 "";
293 if(logging)System.out.println("Test_Editor keyEvent id=" + e.getID() + " " + " src=" + ((Component) e.getSource()).getName() + " " + ((Component) e.getSource()).getClass().getName() + " " + source + " char=" + e.getKeyChar() + " code=" + e.getKeyCode() + " loc=" + e.getKeyLocation() + "\n mod=" + e.getModifiers() + " " + KeyEvent.getKeyModifiersText(e.getModifiers()) + " modx=" + e.getModifiersEx() + " " + KeyEvent.getKeyModifiersText(e.getModifiersEx()));
294 }
295
296 protected void showMouseEvent(MouseEvent e) {
297 Component c = DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();

Callers 3

keyPressedMethod · 0.95
keyTypedMethod · 0.95
keyReleasedMethod · 0.95

Calls 5

getSourceMethod · 0.80
printlnMethod · 0.65
getIDMethod · 0.65
getNameMethod · 0.65
getClassMethod · 0.45

Tested by

no test coverage detected