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 /framework/qml/MailListView.qml | |
parent | efa329d6782b016dd1b95b84301e7cc155ef3372 (diff) | |
download | kube-1722c4c9442d7d2cd8c188f6065270a980bf8e2b.tar.gz kube-1722c4c9442d7d2cd8c188f6065270a980bf8e2b.zip |
Delete-key to move to trash
Diffstat (limited to 'framework/qml/MailListView.qml')
-rw-r--r-- | framework/qml/MailListView.qml | 2 |
1 files changed, 1 insertions, 1 deletions
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}) |