File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -554,6 +554,14 @@ - (void)keyboardDidHide:(NSNotification *)notification
554
554
555
555
- (void )textFieldTextDidChange : (NSNotification *)notification
556
556
{
557
+ // When opening a password manager overlay to select a password and have it auto-filled,
558
+ // text input becomes stopped as a result of the keyboard being hidden or the text field losing focus.
559
+ // As a workaround, ensure text input is activated on any changes to the text field.
560
+ bool startTextInputMomentarily = !SDL_TextInputActive (window);
561
+
562
+ if (startTextInputMomentarily)
563
+ SDL_StartTextInput (window);
564
+
557
565
if (textField.markedTextRange == nil ) {
558
566
NSUInteger compareLength = SDL_min (textField.text .length , committedText.length );
559
567
NSUInteger matchLength;
@@ -588,6 +596,9 @@ - (void)textFieldTextDidChange:(NSNotification *)notification
588
596
}
589
597
committedText = textField.text ;
590
598
}
599
+
600
+ if (startTextInputMomentarily)
601
+ SDL_StopTextInput (window);
591
602
}
592
603
593
604
- (void )updateKeyboard
You can’t perform that action at this time.
0 commit comments