fix releasing ctrl not sorting (#2697)

This commit is contained in:
Darkere
2020-10-04 13:00:32 +02:00
committed by GitHub
parent 34d55e14a6
commit ffc600ec38

View File

@@ -559,7 +559,7 @@ public class GridScreen extends BaseScreen<GridContainer> implements IScreenInfo
@Override
public boolean keyReleased(int key, int p_223281_2_, int p_223281_3_) {
if (key == GLFW.GLFW_KEY_LEFT_SHIFT || key == GLFW.GLFW_KEY_RIGHT_SHIFT) {
if (key == GLFW.GLFW_KEY_LEFT_SHIFT || key == GLFW.GLFW_KEY_RIGHT_SHIFT || key == GLFW.GLFW_KEY_LEFT_CONTROL || key == GLFW.GLFW_KEY_RIGHT_CONTROL) {
view.sort();
}
return super.keyReleased(key, p_223281_2_, p_223281_3_);