Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Check long press flag in keyboard onText() callback (#1907)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and keianhzo committed Oct 3, 2019
1 parent cfd779f commit d75ba19
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,11 @@ public void onNoKey() {

@Override
public void onText(CharSequence text) {
handleText(text.toString());
if (!mIsLongPress) {
handleText(text.toString());
}
mIsLongPress = false;
mIsMultiTap = false;
}

@Override
Expand Down

0 comments on commit d75ba19

Please sign in to comment.