mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 06:40:06 +00:00
commit
b2842105f0
@ -1070,7 +1070,9 @@ void InputMethodAbility::OnClientInactive(const sptr<IRemoteObject> &channel)
|
||||
IMSA_HILOGE("failed to create channel proxy!");
|
||||
return;
|
||||
}
|
||||
imeListener_->OnKeyboardStatus(false);
|
||||
if (imeListener_ != nullptr) {
|
||||
imeListener_->OnKeyboardStatus(false);
|
||||
}
|
||||
panels_.ForEach([this, &channelProxy](const PanelType &panelType, const std::shared_ptr<InputMethodPanel> &panel) {
|
||||
if (panelType != PanelType::SOFT_KEYBOARD || panel->GetPanelFlag() != PanelFlag::FLG_FIXED) {
|
||||
auto ret = panel->HidePanel(false);
|
||||
|
@ -349,7 +349,9 @@ int32_t InputMethodController::Close()
|
||||
OperateIMEInfoCode infoCode = OperateIMEInfoCode::IME_UNBIND;
|
||||
{
|
||||
std::lock_guard<std::recursive_mutex> lock(clientInfoLock_);
|
||||
infoCode = clientInfo_.isShowKeyboard ? OperateIMEInfoCode::IME_HIDE_UNBIND : OperateIMEInfoCode::IME_UNBIND;
|
||||
if (clientInfo_.isShowKeyboard) {
|
||||
infoCode = OperateIMEInfoCode::IME_HIDE_UNBIND;
|
||||
}
|
||||
}
|
||||
InputMethodSyncTrace tracer("InputMethodController Close trace.");
|
||||
InputMethodSysEvent::GetInstance().OperateSoftkeyboardBehaviour(infoCode);
|
||||
|
@ -32,8 +32,8 @@ public:
|
||||
std::shared_ptr<ImeInfo> GetDefaultImeInfo(int32_t userId);
|
||||
std::shared_ptr<Property> GetCurrentInputMethod(int32_t userId);
|
||||
std::shared_ptr<Property> GetDefaultImeCfgProp();
|
||||
bool GetImeAppId(int32_t userId, const std::string &bundleName, std::string &appId);
|
||||
bool GetImeVersionCode(int32_t userId, const std::string &bundleName, uint32_t &versionCode);
|
||||
static bool GetImeAppId(int32_t userId, const std::string &bundleName, std::string &appId);
|
||||
static bool GetImeVersionCode(int32_t userId, const std::string &bundleName, uint32_t &versionCode);
|
||||
|
||||
private:
|
||||
static std::shared_ptr<ImeInfo> defaultIme_;
|
||||
|
Loading…
Reference in New Issue
Block a user