From 7e244f411b9119a4e2507e92746643eae93e987f Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Mon, 8 Mar 2021 15:54:31 +0100 Subject: [PATCH] End composing when inserting text https://github.com/flutter/flutter/issues/77544 --- .../darwin/macos/framework/Source/FlutterTextInputPlugin.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm b/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm index c8030e85c5ab3..159d7c74e52f9 100644 --- a/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm +++ b/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm @@ -282,6 +282,7 @@ - (void)insertText:(id)string replacementRange:(NSRange)range { _activeModel->AddText([string UTF8String]); if (_activeModel->composing()) { _activeModel->CommitComposing(); + _activeModel->EndComposing(); } [self updateEditState]; }