Skip to content

Commit

Permalink
fix(client): handle charTyped in ScreenWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Nov 13, 2024
1 parent 5c364f6 commit 7b0cdbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ so there’s no need to worry if the server hasn't been updated to 2.1.x.
### Changes in 2.1.2
- Fixed buffer overflow when using AudioSender with delayed first frame.
- Fixed EncoderException on server switch on servers with proxy and proxy-side addons (e.g, groups addon).
- Fixed `pv.activation.*` permission is not being updated on the client without reconnect.
- Fixed `pv.activation.*` permission is not being updated on the client without reconnect.
- Fixed textfield input not being handled.
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,14 @@ public boolean mouseScrolled(double mouseX, double mouseY, double delta) {
// return screen.mouseScrolled(mouseX, mouseY, delta);
// }

@Override
public boolean charTyped(char typedChar, int modifiers) {
return screen.charTyped(typedChar, modifiers);
}

@Override
public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
if (keyCode == 0) {
screen.charTyped((char) 0, modifiers);
return false;
}

Expand Down

0 comments on commit 7b0cdbf

Please sign in to comment.