fix(virtualkeyboardwidget): Set the screen to lock or hibernate when the cover is closed, and the keyboard screen appears when the cover is opened
Description: Set the screen to lock or hibernate when the cover is closed, and the keyboard screen appears when the cover is opened Log: 置合盖时锁屏或休眠,开盖时出现键盘界面 Bug: bug#I72HS3【次要】【电源管理】设置合盖时锁屏或休眠,开盖时出现键盘界面
This commit is contained in:
parent
62b35288ac
commit
fdf9229479
|
@ -625,9 +625,9 @@ void LockWidget::startAuth()
|
||||||
if(authDialog)
|
if(authDialog)
|
||||||
{
|
{
|
||||||
authDialog->startAuth();
|
authDialog->startAuth();
|
||||||
if (isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
|
// if (isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
|
||||||
showVirtualKeyboard();
|
// showVirtualKeyboard();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -803,9 +803,9 @@ void LockWidget::initUI()
|
||||||
//监听物理键盘插拔
|
//监听物理键盘插拔
|
||||||
libswitch = new LibinputSwitchEvent;
|
libswitch = new LibinputSwitchEvent;
|
||||||
isTableMode = libswitch->geInitDevicesStatus();
|
isTableMode = libswitch->geInitDevicesStatus();
|
||||||
if(isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
|
// if(isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
|
||||||
showVirtualKeyboard();
|
// showVirtualKeyboard();
|
||||||
}
|
// }
|
||||||
connect(libswitch , &LibinputSwitchEvent::tabletModeStatusChanged, this, [ = ](int tablet_mode) {
|
connect(libswitch , &LibinputSwitchEvent::tabletModeStatusChanged, this, [ = ](int tablet_mode) {
|
||||||
isTableMode = tablet_mode;
|
isTableMode = tablet_mode;
|
||||||
qInfo()<<"TableMode:"<<isTableMode;
|
qInfo()<<"TableMode:"<<isTableMode;
|
||||||
|
@ -961,9 +961,9 @@ void LockWidget::showPowerManager(bool keynavigation)
|
||||||
if(!authDialog->getLineeditStatus()) {
|
if(!authDialog->getLineeditStatus()) {
|
||||||
tabAt = LINEEDIT;
|
tabAt = LINEEDIT;
|
||||||
authDialog->setFocusin(IN_LINEEDIT);
|
authDialog->setFocusin(IN_LINEEDIT);
|
||||||
if (m_isShowKeyboard && isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
|
// if (m_isShowKeyboard && isTableMode && !(vKeyboard && vKeyboard->isVisible())) {
|
||||||
showVirtualKeyboard();
|
// showVirtualKeyboard();
|
||||||
}
|
// }
|
||||||
} else {
|
} else {
|
||||||
tabAt = MESSAGEBTN;
|
tabAt = MESSAGEBTN;
|
||||||
authDialog->setFocusin(ON_MESSAGEBTN);
|
authDialog->setFocusin(ON_MESSAGEBTN);
|
||||||
|
|
Loading…
Reference in New Issue