From 2d0103a8fe884ff8a30ddf38cf1157e560c1b9da Mon Sep 17 00:00:00 2001 From: Matt Carroll Date: Mon, 10 Jun 2019 13:30:39 -0700 Subject: [PATCH] Removed VIRTUAL_KEYBOARD check in TextInputPlugin because it's blocking Espresso work and its purpose is unknown. (#9238) --- .../io/flutter/embedding/android/AndroidKeyProcessor.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/shell/platform/android/io/flutter/embedding/android/AndroidKeyProcessor.java b/shell/platform/android/io/flutter/embedding/android/AndroidKeyProcessor.java index 9ceb3900506..b6ed765ab10 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());