From a811dcea965fc4c49973258984984ff7def0dc89 Mon Sep 17 00:00:00 2001 From: Ethan Wong Date: Tue, 8 Mar 2022 01:41:10 +0800 Subject: [PATCH] [macOS] Fix IME input issue caused on FlutterTextInputPlugin dealloc --- .../darwin/macos/framework/Source/FlutterTextInputPlugin.mm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm b/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm index 621f2431c957c..9e730ee35f7a5 100644 --- a/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm +++ b/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm @@ -235,11 +235,6 @@ - (BOOL)isFirstResponder { - (void)dealloc { [_channel setMethodCallHandler:nil]; - if (_textInputContext) { - [_textInputContext deactivate]; - [_textInputContext discardMarkedText]; - _textInputContext = nil; - } } #pragma mark - Private