diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-17 12:54:32 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-17 12:54:32 +0200 |
commit | 1722c4c9442d7d2cd8c188f6065270a980bf8e2b (patch) | |
tree | 2b37969e0475d9a66c05c7e63854e704f43b071f | |
parent | efa329d6782b016dd1b95b84301e7cc155ef3372 (diff) | |
download | kube-1722c4c9442d7d2cd8c188f6065270a980bf8e2b.tar.gz kube-1722c4c9442d7d2cd8c188f6065270a980bf8e2b.zip |
Delete-key to move to trash
-rw-r--r-- | framework/qml/ConversationView.qml | 2 | ||||
-rw-r--r-- | framework/qml/MailListView.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml index b052caa2..d65087d7 100644 --- a/framework/qml/ConversationView.qml +++ b/framework/qml/ConversationView.qml | |||
@@ -85,7 +85,7 @@ FocusScope { | |||
85 | 85 | ||
86 | Keys.onPressed: { | 86 | Keys.onPressed: { |
87 | //Not implemented as a shortcut because we want it only to apply if we have the focus | 87 | //Not implemented as a shortcut because we want it only to apply if we have the focus |
88 | if (event.text == "d") { | 88 | if (event.text == "d" || event.key == Qt.Key_Delete) { |
89 | Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": listView.currentItem.currentData.mail}) | 89 | Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": listView.currentItem.currentData.mail}) |
90 | } else if (event.text == "r") { | 90 | } else if (event.text == "r") { |
91 | Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": listView.currentItem.currentData.mail}) | 91 | Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": listView.currentItem.currentData.mail}) |
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 631107e6..f16e726e 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml | |||
@@ -83,7 +83,7 @@ FocusScope { | |||
83 | 83 | ||
84 | Keys.onPressed: { | 84 | Keys.onPressed: { |
85 | //Not implemented as a shortcut because we want it only to apply if we have the focus | 85 | //Not implemented as a shortcut because we want it only to apply if we have the focus |
86 | if (event.text == "d") { | 86 | if (event.text == "d" || event.key == Qt.Key_Delete) { |
87 | Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": root.currentMail}) | 87 | Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": root.currentMail}) |
88 | } else if (event.text == "r") { | 88 | } else if (event.text == "r") { |
89 | Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": root.currentMail}) | 89 | Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": root.currentMail}) |