mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Fix text field resetting text when replaced with a short string
Triggered by auto-filling a password with less than 16 characters from a password manager.
This commit is contained in:
parent
10478c59db
commit
bd7d4708e3
1 changed files with 1 additions and 1 deletions
|
|
@ -633,7 +633,7 @@ static void SDLCALL SDL_HideHomeIndicatorHintChanged(void *userdata, const char
|
|||
- (BOOL)textField:(UITextField *)_textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
|
||||
{
|
||||
if (textField.markedTextRange == nil) {
|
||||
if (textField.text.length < 16) {
|
||||
if ([string length] == 0 && textField.text.length < 16) {
|
||||
[self resetTextState];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue