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

Commit 25d7202

Browse files
authored
End composing when inserting text (#24866)
flutter/flutter#77544
1 parent 56b9057 commit 25d7202

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ - (void)insertText:(id)string replacementRange:(NSRange)range {
282282
_activeModel->AddText([string UTF8String]);
283283
if (_activeModel->composing()) {
284284
_activeModel->CommitComposing();
285+
_activeModel->EndComposing();
285286
}
286287
[self updateEditState];
287288
}

0 commit comments

Comments
 (0)