summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/conversation/qml/View.qml34
1 files changed, 16 insertions, 18 deletions
diff --git a/views/conversation/qml/View.qml b/views/conversation/qml/View.qml
index 2a5e3d0c..7463d5e2 100644
--- a/views/conversation/qml/View.qml
+++ b/views/conversation/qml/View.qml
@@ -41,6 +41,21 @@ Kube.View {
41 onMessageReceived: root.triggerSearch() 41 onMessageReceived: root.triggerSearch()
42 } 42 }
43 43
44 helpViewComponent: Kube.HelpPopup {
45 ListModel {
46 ListElement { description: qsTr("Jump to next thread:"); shortcut: "j" }
47 ListElement { description: qsTr("Jump to previous thread:"); shortcut: "k" }
48 ListElement { description: qsTr("Jump to next message:"); shortcut: "n" }
49 ListElement { description: qsTr("Jump to previous message:"); shortcut: "p" }
50 ListElement { description: qsTr("Jump to next folder:"); shortcut: "f,n" }
51 ListElement { description: qsTr("Jump to previous previous folder:"); shortcut: "f,p" }
52 ListElement { description: qsTr("Compose new message:"); shortcut: "c" }
53 ListElement { description: qsTr("Reply to the currently focused message:"); shortcut: "r" }
54 ListElement { description: qsTr("Delete the currently focused message:"); shortcut: "d" }
55 ListElement { description: qsTr("Show this help text:"); shortcut: "?" }
56 }
57 }
58
44 Shortcut { 59 Shortcut {
45 sequences: ['j'] 60 sequences: ['j']
46 onActivated: Kube.Fabric.postMessage(Kube.Messages.selectNextConversation, {}) 61 onActivated: Kube.Fabric.postMessage(Kube.Messages.selectNextConversation, {})
@@ -79,7 +94,7 @@ Kube.View {
79 } 94 }
80 Shortcut { 95 Shortcut {
81 sequence: "?" 96 sequence: "?"
82 onActivated: helpViewComponent.createObject(root).open() 97 onActivated: root.showHelp()
83 } 98 }
84 99
85 100
@@ -203,21 +218,4 @@ Kube.View {
203 } 218 }
204 } 219 }
205 220
206 Component {
207 id: helpViewComponent
208 Kube.HelpPopup {
209 ListModel {
210 ListElement { description: qsTr("Jump to next thread:"); shortcut: "j" }
211 ListElement { description: qsTr("Jump to previous thread:"); shortcut: "k" }
212 ListElement { description: qsTr("Jump to next message:"); shortcut: "n" }
213 ListElement { description: qsTr("Jump to previous message:"); shortcut: "p" }
214 ListElement { description: qsTr("Jump to next folder:"); shortcut: "f,n" }
215 ListElement { description: qsTr("Jump to previous previous folder:"); shortcut: "f,p" }
216 ListElement { description: qsTr("Compose new message:"); shortcut: "c" }
217 ListElement { description: qsTr("Reply to the currently focused message:"); shortcut: "r" }
218 ListElement { description: qsTr("Delete the currently focused message:"); shortcut: "d" }
219 ListElement { description: qsTr("Show this help text:"); shortcut: "?" }
220 }
221 }
222 }
223} 221}