diff options
author | Kai Uwe Broulik <kde@privat.broulik.de> | 2015-06-02 13:32:50 +0200 |
---|---|---|
committer | Kai Uwe Broulik <kde@privat.broulik.de> | 2015-09-17 14:34:03 +0000 |
commit | f22ea338a91c2e0bddc011762a64105e7d5698a0 (patch) | |
tree | 6636617b6f8510422db1a486501456fd080407e8 /src/controls/TextField.qml | |
parent | 3ed9cbc56fc8ea3cc92d1b8a2459103c85f39bbc (diff) | |
download | qtquickcontrols-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.qml | 4 |
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() |