Skip to content

Commit

Permalink
Removed VIRTUAL_KEYBOARD check in TextInputPlugin because it's blocki…
Browse files Browse the repository at this point in the history
…ng Espresso work and its purpose is unknown. (#9238)
  • Loading branch information
matthew-carroll committed Jun 10, 2019
1 parent f3ab2e4 commit 2d0103a
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -30,11 +30,9 @@ public void onKeyUp(@NonNull KeyEvent keyEvent) {
}

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());
Expand Down

0 comments on commit 2d0103a

Please sign in to comment.