8
Keys.onReturnPressed: console.log("Error - Root")
15
Keys.onReturnPressed: console.log("Error - FocusScope")
23
border.color: myScope.activeFocus?"blue":"black"
27
width: 100; height: 100; color: "green"
29
border.color: item1.activeFocus?"blue":"black"
33
id: item1; objectName: "item1"
38
Keys.onReturnPressed: console.log("Top Left");
39
KeyNavigation.right: item2
41
wrapMode: TextEdit.WordWrap
46
id: item2; objectName: "item2"
48
width: 100; height: 100; color: "green"
50
border.color: activeFocus?"blue":"black"
51
KeyNavigation.left: item1
52
Keys.onReturnPressed: console.log("Top Right");
55
width: 50; height: 50; anchors.centerIn: parent
56
color: parent.activeFocus?"red":"transparent"
60
KeyNavigation.down: item3
63
Text { x:100; y:170; text: "Blue border indicates scoped focus\nBlack border indicates NOT scoped focus\nRed box or flashing cursor indicates active focus\nUse arrow keys to navigate\nPress Ctrl-Return to print currently focused item" }
67
width: 100; height: 100; color: "green"
69
border.color: item3.activeFocus?"blue":"black"
73
id: item3; objectName: "item3"
80
Keys.onReturnPressed: console.log("Bottom Left");
81
KeyNavigation.up: myScope
82
wrapMode: TextEdit.WordWrap