-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Third party keyboard the backspace is not working. #53
Comments
Thanks for the report, we’ll look into it as soon as we can. |
well i have patched this issue, it happens if we are subclassing the text field. (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { BOOL isPressedBackspaceAfterSingleSpaceSymbol = [textField.text isEqualToString:@""] && range.location == 0 && range.length == 0 && string.length == 0; if (isPressedBackspaceAfterSingleSpaceSymbol) { if ([self respondsToSelector:@selector(textFieldDidEnterBackspace:)]) { [self textFieldDidEnterBackspace:self.inputTextField]; } }else { [self unhighlightAllTokens]; } return YES; } |
We really wish this wasn't still broken! |
Which keyboard are you using? |
I can reproduce this issue as well, using Gboard on iOS 11 and 12, in my own app and in the Venmo app. Raw text can be deleted, but tokens cannot. If the text field has a token in it and my cursor is just to the right of it, tapping the backspace key does nothing. If I tap the token to highlight it, tapping the backspace key still does nothing. If I switch to the system keyboard, tapping backspace twice will highlight and then delete the token, as expected. |
is not getting called on "x" button for third party keyboard, so deleting any token is not possible at all in such case.
The text was updated successfully, but these errors were encountered: