summaryrefslogtreecommitdiffstats
path: root/framework/qml/MailListView.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-04 13:11:22 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-04 13:11:22 +0200
commitab3d462590e29488e2f5cff8338745347ff80742 (patch)
tree34c0f26ca61e88709106851a89f312277a5f9e27 /framework/qml/MailListView.qml
parent974b53f9df94d70a7f04080e181704111c2f294a (diff)
downloadkube-ab3d462590e29488e2f5cff8338745347ff80742.tar.gz
kube-ab3d462590e29488e2f5cff8338745347ff80742.zip
Keyboard navigation in conversation view.
One problem with the current setting is that j/k is used for scrolling in the conversation view, but for moving to the next mail in the maillist view. To normalize this we could be using j/k for moving to the next conversation instead, and n/p to go to the next/previous mail, which is also what gmail does.
Diffstat (limited to 'framework/qml/MailListView.qml')
-rw-r--r--framework/qml/MailListView.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml
index eb124102..ff72a59c 100644
--- a/framework/qml/MailListView.qml
+++ b/framework/qml/MailListView.qml
@@ -60,6 +60,16 @@ FocusScope {
60 text: qsTr("Nothing here...") 60 text: qsTr("Nothing here...")
61 } 61 }
62 62
63 Kube.Listener {
64 filter: Kube.Messages.nextConversation
65 onMessageReceived: listView.incrementCurrentIndex()
66 }
67
68 Kube.Listener {
69 filter: Kube.Messages.previousConversation
70 onMessageReceived: listView.decrementCurrentIndex()
71 }
72
63 ColumnLayout { 73 ColumnLayout {
64 anchors.fill: parent 74 anchors.fill: parent
65 75