mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 06:40:06 +00:00
消除代码差异
Signed-off-by: zhangsaiyang <zhangsaiyang@huawei.com>
This commit is contained in:
parent
4d1abf7617
commit
1a9833f430
@ -171,8 +171,6 @@ private:
|
||||
double positionY_ = 0;
|
||||
double height_ = 0;
|
||||
|
||||
bool isPendingShowKeyboard_ = false;
|
||||
|
||||
std::mutex defaultImeCheckMutex_;
|
||||
bool isDefaultIme_ = false;
|
||||
std::mutex inputAttrLock_;
|
||||
|
@ -223,7 +223,6 @@ int32_t InputMethodAbility::StartInput(const InputClientInfo &clientInfo, bool i
|
||||
|
||||
auto showPanel = [&, needShow = clientInfo.isShowKeyboard] {
|
||||
if (needShow) {
|
||||
isPendingShowKeyboard_ = clientInfo.isShowKeyboard;
|
||||
ShowKeyboardImplWithoutLock(cmdId_);
|
||||
}
|
||||
};
|
||||
@ -810,11 +809,6 @@ int32_t InputMethodAbility::CreatePanel(const std::shared_ptr<AbilityRuntime::Co
|
||||
inputMethodPanel = nullptr;
|
||||
return false;
|
||||
});
|
||||
// Called when creating the input method first time, if the CreatePanel is called later than the ShowKeyboard.
|
||||
if (panelInfo.panelType == SOFT_KEYBOARD && isPendingShowKeyboard_) {
|
||||
ShowKeyboard();
|
||||
isPendingShowKeyboard_ = false;
|
||||
}
|
||||
return flag ? ErrorCode::NO_ERROR : ErrorCode::ERROR_OPERATE_PANEL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user