[PATCH] Fix UrlBar to use Qt.inputMethod.

31 views
Skip to first unread message

Lauro Moura

unread,
Jul 17, 2012, 7:18:17 PM7/17/12
to snowsh...@googlegroups.com
From: Lauro Neto <lauro...@openbossa.org>

Instead calling the old global function API, use
the new Qt.inputMethod object.

Fixes the non-closing keyboard problem with newer
Qt revisions.
---
src/mobile/qml/UrlBar.qml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mobile/qml/UrlBar.qml b/src/mobile/qml/UrlBar.qml
index 6cbfdbf..77ed8d2 100644
--- a/src/mobile/qml/UrlBar.qml
+++ b/src/mobile/qml/UrlBar.qml
@@ -49,7 +49,7 @@ Item {
text: ""
inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase

- onFocusChanged: if (!focus) closeSoftwareInputPanel()
+ onFocusChanged: if (!focus && Qt.inputMethod) Qt.inputMethod.hide();
onAccepted: root.accepted()

Text {
--
1.7.5.4

Marcelo Lira

unread,
Jul 17, 2012, 7:23:08 PM7/17/12
to snowsh...@googlegroups.com
r=me
--
Marcelo Lira dos Santos
INdT - Instituto Nokia de Tecnologia
Reply all
Reply to author
Forward
0 new messages