[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#706609: maliit-framework: virtual keyboard does not autohide with Qt



Control: tag +patch

I have prepared a fix to this issue which simply hides the virtual
keyboard when the Qt input context receives NULL as focused widget.

I am definitively not expert in maliit codebase, so I don't if this fix
is rough or very rough :-).

Thanks for considering the fix or to think about a better one.

Cheers,

Nicolas
Description: Make keyboard hide when Qt input widget lost focus
 In the Qt input context, the hideInputMethod method is called when the
 focused widget is NULL. By doing so, we have the same behavior as with GTK+
 programs.
Author: Nicolas Bourdaud@gmail.com
Bug-Debian: http://bugs.debian.org/706609
Forwarded: no
Last-Update: 2013-05-02
--- a/input-context/maliit-input-context/minputcontext.cpp
+++ b/input-context/maliit-input-context/minputcontext.cpp
@@ -477,6 +477,9 @@
     // show or hide Copy/Paste button on input method server
     notifyCopyPasteState();
 
+    if (!focused)
+        imServer->hideInputMethod();
+
     if (inputPanelState == InputPanelShowPending && focused) {
         sipHideTimer.stop();
         imServer->showInputMethod();

Reply to: