1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-14 12:10:30 +00:00

Fix arrow keys not working in the printout UI

This is a Fabric-specific bug - vanilla always returns true from
keyPressed, but Forge patches it to not do that. Closes #1409.
This commit is contained in:
Jonathan Coates 2023-04-16 09:14:55 +01:00
parent a0efe637d6
commit e8fd460935
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -46,8 +46,6 @@ public class PrintoutScreen extends AbstractContainerScreen<HeldItemMenu> {
@Override
public boolean keyPressed(int key, int scancode, int modifiers) {
if (super.keyPressed(key, scancode, modifiers)) return true;
if (key == GLFW.GLFW_KEY_RIGHT) {
if (page < pages - 1) page++;
return true;
@ -58,7 +56,7 @@ public class PrintoutScreen extends AbstractContainerScreen<HeldItemMenu> {
return true;
}
return false;
return super.keyPressed(key, scancode, modifiers);
}
@Override