(int keyCode)
| 399 | } |
| 400 | |
| 401 | @Override |
| 402 | public boolean keyDown(int keyCode) { |
| 403 | if (keyCode == Keys.ESCAPE || keyCode == Keys.BACK) { |
| 404 | if (Forge.endKeyInput()) { return true; } |
| 405 | |
| 406 | if (Forge.isLandscapeMode() && !allowBackInLandscapeMode()) { |
| 407 | Forge.exit(false); //prompt to exit if attempting to go back from screen that doesn't allow back in landscape mode |
| 408 | return true; |
| 409 | } |
| 410 | Forge.back(); //go back on escape by default |
| 411 | return true; |
| 412 | } |
| 413 | if (keyCode == Keys.F5) { //allow revalidating current screen when running desktop app |
| 414 | revalidate(); |
| 415 | } |
| 416 | return super.keyDown(keyCode); |
| 417 | } |
| 418 | } |
nothing calls this directly
no test coverage detected