fix not being able to enter O in the search bar in songmenu
This commit is contained in:
parent
dd731592aa
commit
4dc8b34557
|
@ -1171,12 +1171,11 @@ public class SongMenu extends ComplexOpsuState {
|
||||||
case Input.KEY_PRIOR:
|
case Input.KEY_PRIOR:
|
||||||
changeIndex(-MAX_SONG_BUTTONS);
|
changeIndex(-MAX_SONG_BUTTONS);
|
||||||
return true;
|
return true;
|
||||||
case Input.KEY_O:
|
|
||||||
if (input.isKeyDown(Input.KEY_LCONTROL) || input.isKeyDown(Input.KEY_RCONTROL)) {
|
|
||||||
optionsOverlay.show();
|
|
||||||
}
|
}
|
||||||
|
if (key == Input.KEY_O && (input.isKeyDown(Input.KEY_LCONTROL) || input.isKeyDown(Input.KEY_RCONTROL))) {
|
||||||
|
optionsOverlay.show();
|
||||||
return true;
|
return true;
|
||||||
default:
|
}
|
||||||
// wait for user to finish typing
|
// wait for user to finish typing
|
||||||
// TODO: accept all characters (current conditions are from TextField class)
|
// TODO: accept all characters (current conditions are from TextField class)
|
||||||
if ((c > 31 && c < 127) || key == Input.KEY_BACK) {
|
if ((c > 31 && c < 127) || key == Input.KEY_BACK) {
|
||||||
|
@ -1194,8 +1193,6 @@ public class SongMenu extends ComplexOpsuState {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mouseDragged(int oldx, int oldy, int newx, int newy) {
|
public boolean mouseDragged(int oldx, int oldy, int newx, int newy) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user