[macOS] Fix IME input issue caused on FlutterTextInputPlugin dealloc. (flutter/engine#31879)

This commit is contained in:
Ethan Wong 2022-04-22 02:54:03 +08:00 committed by GitHub
parent 7091374286
commit 1da38af2ce

View File

@ -235,11 +235,6 @@ static flutter::TextRange RangeFromBaseExtent(NSNumber* base,
- (void)dealloc {
[_channel setMethodCallHandler:nil];
if (_textInputContext) {
[_textInputContext deactivate];
[_textInputContext discardMarkedText];
_textInputContext = nil;
}
}
#pragma mark - Private