8 Keys.onDigit9Pressed: console.log("Error - Root")
15 Keys.onDigit9Pressed: console.log("Error - FocusScope")
23 border.color: myScope.activeFocus?"blue":"black"
26 id: item1; objectName: "item1"
28 width: 100; height: 100; color: "green"
30 border.color: activeFocus?"blue":"black"
31 Keys.onDigit9Pressed: console.debug("Top Left");
32 KeyNavigation.right: item2
36 width: 50; height: 50; anchors.centerIn: parent
37 color: parent.activeFocus?"red":"transparent"
42 id: item2; objectName: "item2"
44 width: 100; height: 100; color: "green"
46 border.color: activeFocus?"blue":"black"
47 KeyNavigation.left: item1
48 Keys.onDigit9Pressed: console.log("Top Right");
51 width: 50; height: 50; anchors.centerIn: parent
52 color: parent.activeFocus?"red":"transparent"
56 KeyNavigation.down: item3
59 Text { x:100; y:170; text: "Blue border indicates scoped focus\nBlack border indicates NOT scoped focus\nRed box indicates active focus\nUse arrow keys to navigate\nPress \"9\" to print currently focused item" }
62 id: item3; objectName: "item3"
64 width: 100; height: 100; color: "green"
66 border.color: activeFocus?"blue":"black"
68 Keys.onDigit9Pressed: console.log("Bottom Left");
69 KeyNavigation.up: myScope
72 width: 50; height: 50; anchors.centerIn: parent
73 color: parent.activeFocus?"red":"transparent"