summaryrefslogtreecommitdiffstats
path: root/demos/declarative
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative')
-rw-r--r--demos/declarative/webbrowser/fieldtext/FieldText.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/demos/declarative/webbrowser/fieldtext/FieldText.qml b/demos/declarative/webbrowser/fieldtext/FieldText.qml
index 976785b..fe55185 100644
--- a/demos/declarative/webbrowser/fieldtext/FieldText.qml
+++ b/demos/declarative/webbrowser/fieldtext/FieldText.qml
@@ -60,7 +60,7 @@ Item {
opacity: 0
}
- LineEdit {
+ TextInput {
id: textEdit
text: fieldText.text
focus: false
@@ -72,8 +72,7 @@ Item {
color: "black"
font.bold: true
readOnly: true
- Keys.onEnterPressed: confirm()
- Keys.onReturnPressed: confirm()
+ onAccepted: confirm()
Keys.onEscapePressed: reset()
}