diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2013-04-11 10:58:55 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-11 13:34:49 +0200 |
commit | 25174d36986f154d8120c3a09dbb055cb71c74d1 (patch) | |
tree | c0da5a7c608e718ca0e3fb229e07ad8dfa8b0b80 /src/controls | |
parent | 6a3a018e354ab7ae053c47b9468a1e10fece1e91 (diff) | |
download | qtquickcontrols-25174d36986f154d8120c3a09dbb055cb71c74d1.tar.gz |
SpinBox: enable focus on the internal TextInput
This way keyboard input works after tabbing into a SpinBox.
Change-Id: I68a482936bfed7e823002ac5e56fec4757db0ef5
Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'src/controls')
-rw-r--r-- | src/controls/SpinBox.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/SpinBox.qml b/src/controls/SpinBox.qml index 2e7abf1c..3eb16b58 100644 --- a/src/controls/SpinBox.qml +++ b/src/controls/SpinBox.qml @@ -233,6 +233,7 @@ Control { TextInput { id: input anchors.verticalCenter: parent.verticalCenter + focus: true activeFocusOnPress: spinbox.activeFocusOnPress function setValue(v) { var newval = parseFloat(v) |