summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-09 14:49:24 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-09 14:49:24 +0200
commit8e2f9664da95dee0ca55a9129e02d298a826f18e (patch)
tree9239a1f13e2b44982a36b456c1215ad8b7f71aca
parent19857144241d4169a0eb49737e7a61c481b9609d (diff)
downloadkube-8e2f9664da95dee0ca55a9129e02d298a826f18e.tar.gz
kube-8e2f9664da95dee0ca55a9129e02d298a826f18e.zip
A reply shortcut
-rw-r--r--framework/qml/ConversationView.qml4
-rw-r--r--framework/qml/MailListView.qml4
-rw-r--r--views/conversation/qml/View.qml2
3 files changed, 8 insertions, 2 deletions
diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml
index fc239d40..4df7dfa0 100644
--- a/framework/qml/ConversationView.qml
+++ b/framework/qml/ConversationView.qml
@@ -87,9 +87,11 @@ FocusScope {
87 } 87 }
88 88
89 Keys.onPressed: { 89 Keys.onPressed: {
90 //Not implemented as a shortcut because we want it only to apply if we have the focus
90 if (event.text == "d") { 91 if (event.text == "d") {
91 //Not implemented as a shortcut because we want it only to apply if we have the focus
92 Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": listView.currentItem.currentData.mail}) 92 Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": listView.currentItem.currentData.mail})
93 } else if (event.text == "r") {
94 Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": listView.currentItem.currentData.mail})
93 } 95 }
94 } 96 }
95 97
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml
index a8322f15..46d3146a 100644
--- a/framework/qml/MailListView.qml
+++ b/framework/qml/MailListView.qml
@@ -130,9 +130,11 @@ FocusScope {
130 } 130 }
131 131
132 Keys.onPressed: { 132 Keys.onPressed: {
133 //Not implemented as a shortcut because we want it only to apply if we have the focus
133 if (event.text == "d") { 134 if (event.text == "d") {
134 //Not implemented as a shortcut because we want it only to apply if we have the focus
135 Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": root.currentMail}) 135 Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": root.currentMail})
136 } else if (event.text == "r") {
137 Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": root.currentMail})
136 } 138 }
137 } 139 }
138 140
diff --git a/views/conversation/qml/View.qml b/views/conversation/qml/View.qml
index 088b7ae5..33f4868f 100644
--- a/views/conversation/qml/View.qml
+++ b/views/conversation/qml/View.qml
@@ -204,6 +204,8 @@ FocusScope {
204 ListElement { description: qsTr("Jump to next folder:"); shortcut: "f,n" } 204 ListElement { description: qsTr("Jump to next folder:"); shortcut: "f,n" }
205 ListElement { description: qsTr("Jump to previous previous folder:"); shortcut: "f,p" } 205 ListElement { description: qsTr("Jump to previous previous folder:"); shortcut: "f,p" }
206 ListElement { description: qsTr("Compose new message:"); shortcut: "c" } 206 ListElement { description: qsTr("Compose new message:"); shortcut: "c" }
207 ListElement { description: qsTr("Reply to the currently focused message:"); shortcut: "r" }
208 ListElement { description: qsTr("Delete the currently focused message:"); shortcut: "d" }
207 ListElement { description: qsTr("Show this help text:"); shortcut: "?" } 209 ListElement { description: qsTr("Show this help text:"); shortcut: "?" }
208 } 210 }
209 } 211 }