diff --git a/legacy/src/main/java/io/github/moulberry/moulconfig/gui/GuiScreenElementWrapperNew.java b/legacy/src/main/java/io/github/moulberry/moulconfig/gui/GuiScreenElementWrapperNew.java index dc4983079..8063bddfb 100644 --- a/legacy/src/main/java/io/github/moulberry/moulconfig/gui/GuiScreenElementWrapperNew.java +++ b/legacy/src/main/java/io/github/moulberry/moulconfig/gui/GuiScreenElementWrapperNew.java @@ -76,8 +76,9 @@ protected void keyTyped(char typedChar, int keyCode) { public void handleKeyboardInput() throws IOException { super.handleKeyboardInput(); + if (Keyboard.getEventKeyState()) + context.getRoot().keyboardEvent(new KeyboardEvent.CharTyped(Keyboard.getEventCharacter()), createContext()); context.getRoot().keyboardEvent(new KeyboardEvent.KeyPressed(Keyboard.getEventKey(), Keyboard.getEventKeyState()), createContext()); - context.getRoot().keyboardEvent(new KeyboardEvent.CharTyped(Keyboard.getEventCharacter()), createContext()); } @Override