From 14bbe16956dd1622b425eb107a820db791223720 Mon Sep 17 00:00:00 2001 From: zhaolinglan Date: Tue, 4 Apr 2023 10:52:17 +0800 Subject: [PATCH] add focus check to input client Signed-off-by: zhaolinglan --- services/src/peruser_session.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/services/src/peruser_session.cpp b/services/src/peruser_session.cpp index 32c795cb..c045bde1 100644 --- a/services/src/peruser_session.cpp +++ b/services/src/peruser_session.cpp @@ -166,15 +166,6 @@ int32_t PerUserSession::ShowKeyboard( int32_t PerUserSession::HideKeyboard(const sptr &inputClient) { IMSA_HILOGD("PerUserSession::HideKeyboard"); - auto client = GetCurrentClient(); - if (client == nullptr || inputClient == nullptr) { - IMSA_HILOGE("client is nullptr"); - return ErrorCode::ERROR_CLIENT_NULL_POINTER; - } - if (client->AsObject().GetRefPtr() == inputClient->AsObject().GetRefPtr()) { - IMSA_HILOGE("not current client"); - return ErrorCode::ERROR_CLIENT_NOT_EDITABLE; - } sptr core = GetImsCore(CURRENT_IME); if (core == nullptr) { IMSA_HILOGE("imsCore is nullptr");