summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--basicsuite/Text Input/main.qml8
1 files changed, 2 insertions, 6 deletions
diff --git a/basicsuite/Text Input/main.qml b/basicsuite/Text Input/main.qml
index 53593bf..5c068d9 100644
--- a/basicsuite/Text Input/main.qml
+++ b/basicsuite/Text Input/main.qml
@@ -48,11 +48,10 @@ Image {
property real scrollMarginVertical: 20
- width: parent.width
+ anchors.fill: parent
contentWidth: content.width
contentHeight: content.height
interactive: contentHeight > height
- height: Qt.inputMethod.keyboardRectangle.y
flickableDirection: Flickable.VerticalFlick
children: ScrollBar {}
@@ -62,10 +61,7 @@ Image {
width: flickable.width
height: textEditors.height + 24
- onClicked: {
- if (Qt.inputMethod.inputItem)
- Qt.inputMethod.inputItem.focus = false
- }
+ onClicked: focus = true
Column {
id: textEditors