Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5366c54

Browse files
update
1 parent 60af9a5 commit 5366c54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ - (NSRange)clampSelection:(NSRange)range forText:(NSString*)text {
261261
#pragma mark - UIResponder Overrides
262262

263263
- (BOOL)canBecomeFirstResponder {
264+
// Only the currently focused input field can
265+
// become the first responder. This prevents iOS
266+
// from changing focus by itself.
264267
return _textInputClient != 0;
265268
}
266269

0 commit comments

Comments
 (0)