We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10478c5 commit bd7d470Copy full SHA for bd7d470
src/video/uikit/SDL_uikitviewcontroller.m
@@ -633,7 +633,7 @@ - (void)setKeyboardHeight:(int)height
633
- (BOOL)textField:(UITextField *)_textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
634
{
635
if (textField.markedTextRange == nil) {
636
- if (textField.text.length < 16) {
+ if ([string length] == 0 && textField.text.length < 16) {
637
[self resetTextState];
638
}
639
0 commit comments