!1372 插拔物理键盘flag问题

Merge pull request !1372 from hemenghao/master
This commit is contained in:
openharmony_ci 2024-08-16 09:50:36 +00:00 committed by Gitee
commit a63e339066
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -442,10 +442,10 @@ napi_value JsPanel::AdjustPanelRect(napi_env env, napi_callback_info info)
}
SysPanelStatus sysPanelStatus;
if (ctxt->inputMethodPanel->IsDisplayPortrait()) {
sysPanelStatus = { false, ctxt->inputMethodPanel->GetPanelFlag(), ctxt->layoutParams.portraitRect.width_,
sysPanelStatus = { false, ctxt->panelFlag, ctxt->layoutParams.portraitRect.width_,
ctxt->layoutParams.portraitRect.height_ };
} else {
sysPanelStatus = { false, ctxt->inputMethodPanel->GetPanelFlag(), ctxt->layoutParams.landscapeRect.width_,
sysPanelStatus = { false, ctxt->panelFlag, ctxt->layoutParams.landscapeRect.width_,
ctxt->layoutParams.landscapeRect.height_ };
}
InputMethodAbility::GetInstance()->NotifyPanelStatus(ctxt->inputMethodPanel, sysPanelStatus);