summaryrefslogtreecommitdiffstats
path: root/basicsuite/textinput/TextBase.qml
diff options
context:
space:
mode:
Diffstat (limited to 'basicsuite/textinput/TextBase.qml')
-rw-r--r--basicsuite/textinput/TextBase.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/basicsuite/textinput/TextBase.qml b/basicsuite/textinput/TextBase.qml
index 916b3e2..fc399a8 100644
--- a/basicsuite/textinput/TextBase.qml
+++ b/basicsuite/textinput/TextBase.qml
@@ -40,6 +40,7 @@
****************************************************************************/
import QtQuick 2.0
+import QtQuick.Enterprise.VirtualKeyboard 1.0
FocusScope {
id: textBase
@@ -48,8 +49,9 @@ FocusScope {
property bool previewTextActive: !editor.activeFocus && text.length === 0
property int fontPixelSize: 32
property string previewText
+ property int enterKeyAction: EnterKeyAction.None
property string enterKeyText
- property bool enterKeyEnabled: enterKeyText.length === 0 || editor.text.length > 0 || editor.inputMethodComposing
+ property bool enterKeyEnabled: enterKeyAction === EnterKeyAction.None || editor.text.length > 0 || editor.inputMethodComposing
property alias mouseParent: mouseArea.parent
implicitHeight: editor.height + 12