未验证 提交 2d0103a8 编写于 作者: M Matt Carroll 提交者: GitHub

Removed VIRTUAL_KEYBOARD check in TextInputPlugin because it's blocking...

Removed VIRTUAL_KEYBOARD check in TextInputPlugin because it's blocking Espresso work and its purpose is unknown. (#9238)
上级 f3ab2e41
...@@ -30,11 +30,9 @@ public class AndroidKeyProcessor { ...@@ -30,11 +30,9 @@ public class AndroidKeyProcessor {
} }
public void onKeyDown(@NonNull KeyEvent keyEvent) { public void onKeyDown(@NonNull KeyEvent keyEvent) {
if (keyEvent.getDeviceId() != KeyCharacterMap.VIRTUAL_KEYBOARD) { if (textInputPlugin.getLastInputConnection() != null
if (textInputPlugin.getLastInputConnection() != null && textInputPlugin.getInputMethodManager().isAcceptingText()) {
&& textInputPlugin.getInputMethodManager().isAcceptingText()) { textInputPlugin.getLastInputConnection().sendKeyEvent(keyEvent);
textInputPlugin.getLastInputConnection().sendKeyEvent(keyEvent);
}
} }
Character complexCharacter = applyCombiningCharacterToBaseCharacter(keyEvent.getUnicodeChar()); Character complexCharacter = applyCombiningCharacterToBaseCharacter(keyEvent.getUnicodeChar());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册