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

Commit ac42e51

Browse files
committed
update
1 parent d8bf942 commit ac42e51

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
438438
_activeModel->EndComposing();
439439
}
440440
[_textInputContext discardMarkedText];
441+
441442
_clientID = nil;
442443
_inputAction = nil;
443444
_enableDeltaModel = NO;

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1821,23 +1821,16 @@ - (bool)testSelectorsNotForwardedToFrameworkIfNoClient {
18211821
NSString* runLoopMode = @"FlutterTestRunLoopMode";
18221822
plugin.customRunLoopMode = runLoopMode;
18231823

1824-
// Ensure both selectors are grouped in one platform channel call.
1824+
// Call selectors without setting a client.
18251825
[plugin doCommandBySelector:@selector(moveUp:)];
18261826
[plugin doCommandBySelector:@selector(moveRightAndModifySelection:)];
18271827

1828-
// Clear the client before the CFRunLoop is run.
1829-
[plugin handleMethodCall:[FlutterMethodCall methodCallWithMethodName:@"TextInput.clearClient"
1830-
arguments:@[]]
1831-
result:^(id){
1832-
}];
1833-
18341828
__block bool done = false;
18351829
CFRunLoopPerformBlock(CFRunLoopGetMain(), (__bridge CFStringRef)runLoopMode, ^{
18361830
done = true;
18371831
});
18381832

18391833
while (!done) {
1840-
// Each invocation will handle one source.
18411834
CFRunLoopRunInMode((__bridge CFStringRef)runLoopMode, 0, true);
18421835
}
18431836
// At this point the selectors should be dropped; otherwise, OCMReject will throw.

0 commit comments

Comments
 (0)