Skip to content

Commit 2d0103a

Browse files
author
Matt Carroll
authored
Removed VIRTUAL_KEYBOARD check in TextInputPlugin because it's blocking Espresso work and its purpose is unknown. (flutter#9238)
1 parent f3ab2e4 commit 2d0103a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

shell/platform/android/io/flutter/embedding/android/AndroidKeyProcessor.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ public void onKeyUp(@NonNull KeyEvent keyEvent) {
3030
}
3131

3232
public void onKeyDown(@NonNull KeyEvent keyEvent) {
33-
if (keyEvent.getDeviceId() != KeyCharacterMap.VIRTUAL_KEYBOARD) {
34-
if (textInputPlugin.getLastInputConnection() != null
35-
&& textInputPlugin.getInputMethodManager().isAcceptingText()) {
36-
textInputPlugin.getLastInputConnection().sendKeyEvent(keyEvent);
37-
}
33+
if (textInputPlugin.getLastInputConnection() != null
34+
&& textInputPlugin.getInputMethodManager().isAcceptingText()) {
35+
textInputPlugin.getLastInputConnection().sendKeyEvent(keyEvent);
3836
}
3937

4038
Character complexCharacter = applyCombiningCharacterToBaseCharacter(keyEvent.getUnicodeChar());

0 commit comments

Comments
 (0)