Merge pull request !264 from mashaoyin/master
This commit is contained in:
openharmony_ci 2022-09-14 01:50:59 +00:00 committed by Gitee
commit c7dcd779dd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -224,6 +224,9 @@ namespace MiscServices {
keyEvent->SetKeyAction(2);
keyEvent->SetKeyCode(2013);
sptr<OnTextChangedListener> textListener = new TextListener();
imc->Attach(textListener);
bool ret = imc->dispatchKeyEvent(keyEvent);
EXPECT_TRUE(ret);
}