hide by default

This commit is contained in:
2024-06-01 22:37:18 +03:00
parent ac0f5bc325
commit 5bc7d7cf06

View File

@@ -38,6 +38,7 @@ VirtualKeyboard::VirtualKeyboard(QWidget * parent): QWidget(parent) {
layout->applyHints(imh);
watched->installEventFilter(this);
});
hide();
}
@@ -134,7 +135,8 @@ void VirtualKeyboard::setKeyboardVisible(bool yes) {
if (yes) {
stopIndexedTimer(0);
setVisible(true);
} else startIndexedTimer(0, 10_Hz, [this]{
} else
startIndexedTimer(0, 10_Hz, [this] {
if (QApplication::mouseButtons() != 0) return;
stopIndexedTimer(0);
setVisible(false);