From 9a63ad6df1c6ac16b79cd751862350b612f84d48 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 24 Sep 2017 16:43:20 +0200 Subject: Go back in the view with escape --- framework/qml/View.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/qml/View.qml b/framework/qml/View.qml index 9001a6b3..0065c206 100644 --- a/framework/qml/View.qml +++ b/framework/qml/View.qml @@ -76,6 +76,12 @@ FocusScope { onClicked: decrementCurrentIndex() } + Keys.onEscapePressed: { + if (currentIndex > 0) { + decrementCurrentIndex() + } + } + RowLayout { id: content anchors.fill: parent -- cgit v1.2.3