mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 06:39:54 -04:00
[Bug fix] Text input not working
This commit is contained in:
parent
95e827eee3
commit
69f4e4841b
@ -47,7 +47,7 @@ public class CallbackBridge {
|
||||
public static void sendKeycode(int keycode, char keychar, int modifiers, boolean isDown) {
|
||||
DEBUG_STRING.append("KeyCode=" + keycode + ", Char=" + keychar);
|
||||
// TODO CHECK: This may cause input issue, not receive input!
|
||||
if (!nativeSendCharMods(keycode, modifiers) ||!nativeSendChar(keycode)) {
|
||||
if (!nativeSendCharMods((int) keychar, modifiers) || !nativeSendChar((int) keychar)) {
|
||||
nativeSendKey(keycode, 0 /* scancode */, isDown ? 1 : 0, modifiers);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user