MCPcopy Create free account
hub / github.com/Card-Forge/forge / keyDown

Method keyDown

forge-gui-mobile/src/forge/toolbox/FOverlay.java:200–211  ·  view source on GitHub ↗
(int keyCode)

Source from the content-addressed store, hash-verified

198 }
199
200 @Override
201 public boolean keyDown(int keyCode) {
202 if (tempOverlay == this) { return false; } //suppress key events if waiting to be hidden
203
204 if (keyCode == Keys.ESCAPE || keyCode == Keys.BACK) {
205 if (Forge.endKeyInput()) { return true; }
206
207 hide(); //hide on escape by default
208 return true;
209 }
210 return super.keyDown(keyCode);
211 }
212}

Callers

nothing calls this directly

Calls 2

endKeyInputMethod · 0.95
hideMethod · 0.95

Tested by

no test coverage detected