process common hotkeys in base state

This commit is contained in:
yugecin
2017-01-18 22:46:45 +01:00
parent 81b71d5703
commit 06a5deb3a1
7 changed files with 38 additions and 47 deletions

View File

@@ -893,7 +893,7 @@ public class DownloadsMenu extends ComplexOpsuState {
}
// block input during beatmap importing
if (importThread != null && !(key == Input.KEY_ESCAPE || key == Input.KEY_F12)) {
if (importThread != null && key != Input.KEY_ESCAPE) {
return true;
}
@@ -928,16 +928,6 @@ public class DownloadsMenu extends ComplexOpsuState {
searchQuery.interrupt();
resetSearchTimer();
return true;
case Input.KEY_F7:
// TODO d
//Options.setNextFPS(container);
return true;
case Input.KEY_F10:
Options.toggleMouseDisabled();
return true;
case Input.KEY_F12:
Utils.takeScreenShot();
return true;
}
// wait for user to finish typing
if (Character.isLetterOrDigit(c) || key == Input.KEY_BACK) {