import QtQuick 2.0 Rectangle { width: 360 height: 360 Rectangle { id: button width: 80 height: 80 color: "blue" anchors.top: parent.top anchors.left: parent.left focus: true Keys.forwardTo: [item1, item2, item3] Item { id: item1 Keys.onPressed: { console.log("Keys.onPressed of item1"); } } Item { id: item2 Keys.onPressed: { console.log("Keys.onPressed of item2"); } } Item { id: item3 Keys.onPressed: { console.log("Keys.onPressed of item3"); } } Keys.onPressed: { console.log("Keys.onPressed of button"); } } Keys.onPressed: { console.log("Keys.onPressed of button's parent"); } }