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 1506c40 commit 51b401dCopy full SHA for 51b401d
src/video/uikit/SDL_uikitviewcontroller.m
@@ -575,6 +575,10 @@ - (void)keyboardDidHide:(NSNotification *)notification
575
- (void)textFieldTextDidChange:(NSNotification *)notification
576
{
577
if (textField.markedTextRange == nil) {
578
+ if (isOTPMode && labs((NSInteger)textField.text.length - (NSInteger)committedText.length) != 1) {
579
+ return;
580
+ }
581
+
582
NSUInteger compareLength = SDL_min(textField.text.length, committedText.length);
583
NSUInteger matchLength;
584
0 commit comments