From c7e5680d637848ef03f634c9d93a2b85a500bdd9 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 11 Aug 2020 13:45:56 +0200 Subject: [PATCH] Hide the keyboard if we type using the physical keyboard --- virtualkeyboard.cpp | 1 + 1 file changed, 1 insertion(+) 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