aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/keyinteraction/focus/Core/ContextMenu.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/keyinteraction/focus/Core/ContextMenu.qml')
-rw-r--r--examples/quick/keyinteraction/focus/Core/ContextMenu.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/quick/keyinteraction/focus/Core/ContextMenu.qml b/examples/quick/keyinteraction/focus/Core/ContextMenu.qml
index c5430aa650..31b5e1b83d 100644
--- a/examples/quick/keyinteraction/focus/Core/ContextMenu.qml
+++ b/examples/quick/keyinteraction/focus/Core/ContextMenu.qml
@@ -52,6 +52,7 @@ import QtQuick 2.1
FocusScope {
id: container
+ required property Item keyRightTarget
property bool open: false
@@ -62,7 +63,7 @@ FocusScope {
anchors.fill: parent
color: "#D1DBBD"
focus: true
- Keys.onRightPressed: mainView.focus = true
+ Keys.onRightPressed: container.keyRightTarget.focus = true
Text {
anchors { top: parent.top; horizontalCenter: parent.horizontalCenter; margins: 30 }