summaryrefslogtreecommitdiff
path: root/src/controls/TextField.qml
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2015-06-02 13:32:50 +0200
committerKai Uwe Broulik <kde@privat.broulik.de>2015-09-17 14:34:03 +0000
commitf22ea338a91c2e0bddc011762a64105e7d5698a0 (patch)
tree6636617b6f8510422db1a486501456fd080407e8 /src/controls/TextField.qml
parent3ed9cbc56fc8ea3cc92d1b8a2459103c85f39bbc (diff)
downloadqtquickcontrols-f22ea338a91c2e0bddc011762a64105e7d5698a0.tar.gz
TextField: Forward EnterKey.type to the internal TextInput
Change-Id: Ib8e29048a325d6ac2afc109763a8a782c0244042 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/controls/TextField.qml')
-rw-r--r--src/controls/TextField.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml
index 589869d3..0c8a0df6 100644
--- a/src/controls/TextField.qml
+++ b/src/controls/TextField.qml
@@ -34,7 +34,7 @@
**
****************************************************************************/
-import QtQuick 2.2
+import QtQuick 2.6
import QtQuick.Controls 1.2
import QtQuick.Controls.Private 1.0
@@ -660,6 +660,8 @@ Control {
Keys.forwardTo: textfield
+ EnterKey.type: control.EnterKey.type
+
onAccepted: textfield.accepted()
onEditingFinished: textfield.editingFinished()