mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 20:20: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:
parent
a0efe637d6
commit
e8fd460935
@ -46,8 +46,6 @@ public class PrintoutScreen extends AbstractContainerScreen<HeldItemMenu> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean keyPressed(int key, int scancode, int modifiers) {
|
public boolean keyPressed(int key, int scancode, int modifiers) {
|
||||||
if (super.keyPressed(key, scancode, modifiers)) return true;
|
|
||||||
|
|
||||||
if (key == GLFW.GLFW_KEY_RIGHT) {
|
if (key == GLFW.GLFW_KEY_RIGHT) {
|
||||||
if (page < pages - 1) page++;
|
if (page < pages - 1) page++;
|
||||||
return true;
|
return true;
|
||||||
@ -58,7 +56,7 @@ public class PrintoutScreen extends AbstractContainerScreen<HeldItemMenu> {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return super.keyPressed(key, scancode, modifiers);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user