From fad37e65cae19ccbdbe60bb473f9d11ffe901243 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Thu, 11 Mar 2021 19:27:45 +0100 Subject: [PATCH] End composing when inserting text (flutter/engine#24866) https://github.com/flutter/flutter/issues/77544 --- .../darwin/macos/framework/Source/FlutterTextInputPlugin.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm index c8030e85c5a..159d7c74e52 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm @@ -282,6 +282,7 @@ static flutter::TextRange RangeFromBaseExtent(NSNumber* base, _activeModel->AddText([string UTF8String]); if (_activeModel->composing()) { _activeModel->CommitComposing(); + _activeModel->EndComposing(); } [self updateEditState]; }