删除延迟3秒拉起输入法

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei
2021-10-11 19:05:22 +08:00
parent fe9ad48c12
commit adb0cea38a
5 changed files with 17 additions and 7 deletions
+9
View File
@@ -1305,6 +1305,15 @@ namespace MiscServices {
} else {
IMSA_HILOGI("PerUserSession::onSetInputMethodCore End...[%{public}d]\n", userId_);
}
if (currentClient != nullptr) {
usleep(SLEEP_TIME);
ret = ShowKeyboard(currentClient);
if (ret != ErrorCode::NO_ERROR) {
IMSA_HILOGE("PerUserSession::OnStartInput Aborted! %{public}s", ErrorCode::ToString(ret));
} else {
IMSA_HILOGI("PerUserSession::OnStartInput End...[%{public}d]\n", userId_);
}
}
}
/*! Stop input. Called by an input client.