解决没有绑定输入法时,还消费物理按键的问题

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei
2022-02-14 17:07:40 +08:00
parent e5a81d3536
commit 7466ee37e9
8 changed files with 52 additions and 1 deletions
+2
View File
@@ -1218,6 +1218,7 @@ namespace MiscServices {
sptr<InputClientProxy> client = new InputClientProxy(clientObject);
sptr<IInputClient> interface = client;
int remainClientNum = 0;
imsCore[0]->SetClientState(false);
HideKeyboard(client);
int ret = RemoveClient(client, remainClientNum);
if (ret != ErrorCode::NO_ERROR) {
@@ -1237,6 +1238,7 @@ namespace MiscServices {
MessageParcel *data = msg->msgContent_;
sptr<IRemoteObject> clientObject = data->ReadRemoteObject();
sptr<InputClientProxy> client = new InputClientProxy(clientObject);
imsCore[0]->SetClientState(true);
ShowKeyboard(client);
}