diff options
author | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2014-11-12 20:47:23 +0100 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2014-11-13 10:33:02 +0100 |
commit | 2f3c8f79d2230a8217c29b6e909bd8418ede24e8 (patch) | |
tree | 7c7cbf86110ca8640ac3ec7e3de7ca168d2b9d54 /examples/quick | |
parent | b5403efcb103423f44c707db4b07df0ff5c2203b (diff) |
example, touchinteraction: use forceActiveFocus to gain focus
Use forceActiveFocus to gain focus when the user clicks on
a note. Just setting focus on an item is not enough to gain
keyboard focus.
Change-Id: Ia4a68a17df0df4b321cc6edb646b39c36167e982
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
Diffstat (limited to 'examples/quick')
-rw-r--r-- | examples/quick/touchinteraction/flickable/content/Panel.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/touchinteraction/flickable/content/Panel.qml b/examples/quick/touchinteraction/flickable/content/Panel.qml index a144c347e1..b2926f8098 100644 --- a/examples/quick/touchinteraction/flickable/content/Panel.qml +++ b/examples/quick/touchinteraction/flickable/content/Panel.qml @@ -116,7 +116,7 @@ Component { drag.maximumY: page.height - 80 drag.minimumX: 100 drag.maximumX: page.width - 140 - onClicked: { myText.focus = true; Qt.inputMethod.show(); } + onClicked: myText.forceActiveFocus() } } } |