[Bug fix] Text input not working

This commit is contained in:
khanhduytran0 2020-10-17 13:28:52 +07:00
parent 95e827eee3
commit 69f4e4841b

View File

@ -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);
}