Fixed bug where ESC would not close Join Game Screen
@@ -481,6 +481,12 @@ private void refreshPing() {
}
public boolean onKeyEvent(NUIKeyEvent event) {
+ if (event.isDown() && event.getKey() == Keyboard.Key.ESCAPE) {
+ if (isEscapeToCloseAllowed()) {
+ triggerBackAnimation();
+ return true;
+ }
+ }
if (event.isDown() && event.getKey() == Keyboard.Key.R) {
refresh();
}
