diff --git a/retroshare-qml-app/src/main-app.qml b/retroshare-qml-app/src/main-app.qml index 56873dec3..60d0a62b7 100644 --- a/retroshare-qml-app/src/main-app.qml +++ b/retroshare-qml-app/src/main-app.qml @@ -193,6 +193,25 @@ ApplicationWindow anchors.fill: parent focus: true onCurrentItemChanged: + { + if (currentItem) + { + currentItem.forceActiveFocus() + setStatus (currentItem) + } + } + + Keys.onReleased: + { + if ((event.key === Qt.Key_Back || Qt.Key_Backspace) && stackView.depth > 1) + { + stackView.pop(); + event.accepted = true; + setStatus (stackView.currentItem) + } + } + + function setStatus (currentItem) { if (currentItem) {