diff --git a/virtualkeyboard.cpp b/virtualkeyboard.cpp index d984622933..4eaa68236d 100644 --- a/virtualkeyboard.cpp +++ b/virtualkeyboard.cpp @@ -95,6 +95,7 @@ void VirtualKeyboard::init() dbus->setEnabled(m_enabled); connect(dbus, &VirtualKeyboardDBus::activateRequested, this, &VirtualKeyboard::setEnabled); connect(this, &VirtualKeyboard::enabledChanged, dbus, &VirtualKeyboardDBus::setEnabled); + connect(input(), &InputRedirection::keyStateChanged, this, &VirtualKeyboard::hide); if (waylandServer()) { // we can announce support for the text input interface