Commit 31e881d0 authored by Bhushan Shah's avatar Bhushan Shah 📱 Committed by Bhushan Shah
Browse files

virtualkeyboard: close keyboard when focused text input goes away

Currently when focused text input goes away due to either crash or
explicit user action, keyboard leaves hanging, instead close it up.
parent b2f30e7d
...@@ -194,7 +194,6 @@ void VirtualKeyboard::init() ...@@ -194,7 +194,6 @@ void VirtualKeyboard::init()
} }
m_trackedClient = newClient; m_trackedClient = newClient;
} }
updateInputPanelState();
} else { } else {
m_waylandShowConnection = QMetaObject::Connection(); m_waylandShowConnection = QMetaObject::Connection();
m_waylandHideConnection = QMetaObject::Connection(); m_waylandHideConnection = QMetaObject::Connection();
...@@ -203,7 +202,9 @@ void VirtualKeyboard::init() ...@@ -203,7 +202,9 @@ void VirtualKeyboard::init()
m_waylandResetConnection = QMetaObject::Connection(); m_waylandResetConnection = QMetaObject::Connection();
m_waylandEnabledConnection = QMetaObject::Connection(); m_waylandEnabledConnection = QMetaObject::Connection();
m_waylandStateCommittedConnection = QMetaObject::Connection(); m_waylandStateCommittedConnection = QMetaObject::Connection();
waylandServer()->inputMethod()->sendDeactivate();
} }
updateInputPanelState();
} }
); );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment