summaryrefslogtreecommitdiffstats
path: root/framework/qml/ConversationView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml/ConversationView.qml')
-rw-r--r--framework/qml/ConversationView.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml
index 4aa2b2c0..8331e581 100644
--- a/framework/qml/ConversationView.qml
+++ b/framework/qml/ConversationView.qml
@@ -62,9 +62,17 @@ FocusScope {
62 62
63 Keys.onPressed: { 63 Keys.onPressed: {
64 if (event.text == "j" || event.matches(StandardKey.MoveToNextLine)) { 64 if (event.text == "j" || event.matches(StandardKey.MoveToNextLine)) {
65 listView.scrollDown()
66 } else if (event.text == "J" || event.matches(StandardKey.MoveToNextPage)) {
65 listView.incrementCurrentIndex() 67 listView.incrementCurrentIndex()
66 } else if (event.text == "k" || event.matches(StandardKey.MoveToPreviousLine)) { 68 } else if (event.text == "k" || event.matches(StandardKey.MoveToPreviousLine)) {
69 listView.scrollUp()
70 } else if (event.text == "K" || event.matches(StandardKey.MoveToPreviousPage)) {
67 listView.decrementCurrentIndex() 71 listView.decrementCurrentIndex()
72 } else if (event.text == "n") {
73 Kube.Fabric.postMessage(Kube.Messages.nextConversation, {})
74 } else if (event.text == "p") {
75 Kube.Fabric.postMessage(Kube.Messages.previousConversation, {})
68 } else if (event.text == "d") { 76 } else if (event.text == "d") {
69 //Not implemented as a shortcut because we want it only to apply if we have the focus 77 //Not implemented as a shortcut because we want it only to apply if we have the focus
70 Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": listView.currentItem.currentData.mail}) 78 Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": listView.currentItem.currentData.mail})