summaryrefslogtreecommitdiffstats
path: root/demos/declarative/twitter/content/HomeTitleBar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/twitter/content/HomeTitleBar.qml')
-rw-r--r--demos/declarative/twitter/content/HomeTitleBar.qml8
1 files changed, 2 insertions, 6 deletions
diff --git a/demos/declarative/twitter/content/HomeTitleBar.qml b/demos/declarative/twitter/content/HomeTitleBar.qml
index 5cb8bea..9bca2c8 100644
--- a/demos/declarative/twitter/content/HomeTitleBar.qml
+++ b/demos/declarative/twitter/content/HomeTitleBar.qml
@@ -94,11 +94,7 @@ Item {
wrap:true
color: "#151515"; highlightColor: "green"
}
- KeyProxy {
- id: Proxy
- anchors.fill: parent
- targets: [(ReturnKey), (Editor)]
- }
+ Keys.forwardTo: [(ReturnKey), (Editor)]
Item {
id: ReturnKey
Keys.onReturnPressed: accept()
@@ -114,7 +110,7 @@ Item {
PropertyChanges { target: TagButton; text: "OK" }
PropertyChanges { target: TagButton; width: 28 }
PropertyChanges { target: TagButton; height: 24 }
- PropertyChanges { target: Proxy; focus: true }
+ PropertyChanges { target: txtEdit; focus: true }
}
]
transitions: [