From 8e2f9664da95dee0ca55a9129e02d298a826f18e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 9 Apr 2018 14:49:24 +0200 Subject: A reply shortcut --- framework/qml/ConversationView.qml | 4 +++- framework/qml/MailListView.qml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'framework') 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 { } Keys.onPressed: { + //Not implemented as a shortcut because we want it only to apply if we have the focus if (event.text == "d") { - //Not implemented as a shortcut because we want it only to apply if we have the focus Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": listView.currentItem.currentData.mail}) + } else if (event.text == "r") { + Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": listView.currentItem.currentData.mail}) } } 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 { } Keys.onPressed: { + //Not implemented as a shortcut because we want it only to apply if we have the focus if (event.text == "d") { - //Not implemented as a shortcut because we want it only to apply if we have the focus Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": root.currentMail}) + } else if (event.text == "r") { + Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": root.currentMail}) } } -- cgit v1.2.3