diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-24 16:43:20 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-24 16:43:20 +0200 |
commit | 9a63ad6df1c6ac16b79cd751862350b612f84d48 (patch) | |
tree | 51c377b13f22d2565fb547cee0868680979b7e91 /framework/qml/View.qml | |
parent | 0d8e1b3b351a5ebe159ee6dfa89201ebd20fdce8 (diff) | |
download | kube-9a63ad6df1c6ac16b79cd751862350b612f84d48.tar.gz kube-9a63ad6df1c6ac16b79cd751862350b612f84d48.zip |
Go back in the view with escape
Diffstat (limited to 'framework/qml/View.qml')
-rw-r--r-- | framework/qml/View.qml | 6 |
1 files changed, 6 insertions, 0 deletions
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 { | |||
76 | onClicked: decrementCurrentIndex() | 76 | onClicked: decrementCurrentIndex() |
77 | } | 77 | } |
78 | 78 | ||
79 | Keys.onEscapePressed: { | ||
80 | if (currentIndex > 0) { | ||
81 | decrementCurrentIndex() | ||
82 | } | ||
83 | } | ||
84 | |||
79 | RowLayout { | 85 | RowLayout { |
80 | id: content | 86 | id: content |
81 | anchors.fill: parent | 87 | anchors.fill: parent |