diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-09 10:02:43 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-09 10:02:43 +0200 |
commit | de82b132907110a884239709dea43e08867501d8 (patch) | |
tree | 1fd2db18381947db144c800e276f1db80ea056a3 /views | |
parent | a301d1db33fdecb0e66495b51019922a9b040c1f (diff) | |
download | kube-de82b132907110a884239709dea43e08867501d8.tar.gz kube-de82b132907110a884239709dea43e08867501d8.zip |
A help view to list shortcuts
Diffstat (limited to 'views')
-rw-r--r-- | views/conversation/qml/View.qml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/views/conversation/qml/View.qml b/views/conversation/qml/View.qml index c965b4c7..4cfac3df 100644 --- a/views/conversation/qml/View.qml +++ b/views/conversation/qml/View.qml | |||
@@ -20,12 +20,13 @@ | |||
20 | 20 | ||
21 | import QtQuick 2.9 | 21 | import QtQuick 2.9 |
22 | import QtQuick.Controls 1.3 as Controls1 | 22 | import QtQuick.Controls 1.3 as Controls1 |
23 | import QtQuick.Controls 2.0 as Controls2 | 23 | import QtQuick.Controls 2 |
24 | import QtQuick.Layouts 1.1 | 24 | import QtQuick.Layouts 1.1 |
25 | 25 | ||
26 | import org.kube.framework 1.0 as Kube | 26 | import org.kube.framework 1.0 as Kube |
27 | 27 | ||
28 | FocusScope { | 28 | FocusScope { |
29 | id: root | ||
29 | property alias currentAccount: accountFolderview.currentAccount | 30 | property alias currentAccount: accountFolderview.currentAccount |
30 | 31 | ||
31 | Shortcut { | 32 | Shortcut { |
@@ -56,6 +57,10 @@ FocusScope { | |||
56 | sequences: ['c'] | 57 | sequences: ['c'] |
57 | onActivated: Kube.Fabric.postMessage(Kube.Messages.compose, {}) | 58 | onActivated: Kube.Fabric.postMessage(Kube.Messages.compose, {}) |
58 | } | 59 | } |
60 | Shortcut { | ||
61 | sequence: "?" | ||
62 | onActivated: helpViewComponent.createObject(root).open() | ||
63 | } | ||
59 | 64 | ||
60 | 65 | ||
61 | Controls1.SplitView { | 66 | Controls1.SplitView { |
@@ -179,4 +184,21 @@ FocusScope { | |||
179 | 184 | ||
180 | } | 185 | } |
181 | } | 186 | } |
187 | |||
188 | Component { | ||
189 | id: helpViewComponent | ||
190 | Kube.HelpPopup { | ||
191 | ListModel { | ||
192 | ListElement { description: qsTr("Jump to next thread:"); shortcut: "j" } | ||
193 | ListElement { description: qsTr("Jump to previous thread:"); shortcut: "k" } | ||
194 | ListElement { description: qsTr("Jump to next message:"); shortcut: "n" } | ||
195 | ListElement { description: qsTr("Jump to previous message:"); shortcut: "p" } | ||
196 | ListElement { description: qsTr("Jump to next folder:"); shortcut: "f,n" } | ||
197 | ListElement { description: qsTr("Jump to previous previous folder:"); shortcut: "f,p" } | ||
198 | ListElement { description: qsTr("Compose new message:"); shortcut: "c" } | ||
199 | ListElement { description: qsTr("Show this help text:"); shortcut: "?" } | ||
200 | } | ||
201 | } | ||
202 | } | ||
203 | |||
182 | } | 204 | } |