process common hotkeys in base state
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user