!38 bug#I72HS3【次要】【电源管理】设置合盖时锁屏或休眠,开盖时出现键盘界面

Merge pull request !38 from liudunfa/openkylin/yangtze
This commit is contained in:
杨敏 2023-08-25 00:49:24 +00:00 committed by Gitee
commit fd36a4b7df
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 9 additions and 9 deletions

View File

@ -625,9 +625,9 @@ void LockWidget::startAuth()
if(authDialog)
{
authDialog->startAuth();
if (isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
showVirtualKeyboard();
}
// if (isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
// showVirtualKeyboard();
// }
}
}
@ -803,9 +803,9 @@ void LockWidget::initUI()
//监听物理键盘插拔
libswitch = new LibinputSwitchEvent;
isTableMode = libswitch->geInitDevicesStatus();
if(isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
showVirtualKeyboard();
}
// if(isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
// showVirtualKeyboard();
// }
connect(libswitch , &LibinputSwitchEvent::tabletModeStatusChanged, this, [ = ](int tablet_mode) {
isTableMode = tablet_mode;
qInfo()<<"TableMode:"<<isTableMode;
@ -961,9 +961,9 @@ void LockWidget::showPowerManager(bool keynavigation)
if(!authDialog->getLineeditStatus()) {
tabAt = LINEEDIT;
authDialog->setFocusin(IN_LINEEDIT);
if (m_isShowKeyboard && isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
showVirtualKeyboard();
}
// if (m_isShowKeyboard && isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
// showVirtualKeyboard();
// }
} else {
tabAt = MESSAGEBTN;
authDialog->setFocusin(ON_MESSAGEBTN);