diff --git a/shell/platform/android/io/flutter/embedding/android/AndroidKeyProcessor.java b/shell/platform/android/io/flutter/embedding/android/AndroidKeyProcessor.java index 9ceb3900506e4c81676c438a631986ef19c9dd95..b6ed765ab10e11e6227a31b0788982dee9bc5549 100644 --- a/shell/platform/android/io/flutter/embedding/android/AndroidKeyProcessor.java +++ b/shell/platform/android/io/flutter/embedding/android/AndroidKeyProcessor.java @@ -30,11 +30,9 @@ public class AndroidKeyProcessor { } public void onKeyDown(@NonNull KeyEvent keyEvent) { - if (keyEvent.getDeviceId() != KeyCharacterMap.VIRTUAL_KEYBOARD) { - if (textInputPlugin.getLastInputConnection() != null - && textInputPlugin.getInputMethodManager().isAcceptingText()) { - textInputPlugin.getLastInputConnection().sendKeyEvent(keyEvent); - } + if (textInputPlugin.getLastInputConnection() != null + && textInputPlugin.getInputMethodManager().isAcceptingText()) { + textInputPlugin.getLastInputConnection().sendKeyEvent(keyEvent); } Character complexCharacter = applyCombiningCharacterToBaseCharacter(keyEvent.getUnicodeChar());