diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-09 14:49:24 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-09 14:49:24 +0200 |
commit | 8e2f9664da95dee0ca55a9129e02d298a826f18e (patch) | |
tree | 9239a1f13e2b44982a36b456c1215ad8b7f71aca /framework/qml/ConversationView.qml | |
parent | 19857144241d4169a0eb49737e7a61c481b9609d (diff) | |
download | kube-8e2f9664da95dee0ca55a9129e02d298a826f18e.tar.gz kube-8e2f9664da95dee0ca55a9129e02d298a826f18e.zip |
A reply shortcut
Diffstat (limited to 'framework/qml/ConversationView.qml')
-rw-r--r-- | framework/qml/ConversationView.qml | 4 |
1 files changed, 3 insertions, 1 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 | ||