Skip to content

Commit

Permalink
doubletyping
Browse files Browse the repository at this point in the history
  • Loading branch information
nea89o committed Nov 17, 2023
1 parent b84dbb2 commit 93f45ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93f45ee

Please sign in to comment.