diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-26 21:39:48 -0600 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-27 11:01:21 -0600 |
commit | 89f4c68f548b24d983309cc7337b7c0ffe8aa3f3 (patch) | |
tree | b17891a6e956a70c71fb32a63d886852c7caf6ee /framework/qml/MailViewer.qml | |
parent | dff119d85fd4d6ceaf792337fee59300c1b23579 (diff) | |
download | kube-89f4c68f548b24d983309cc7337b7c0ffe8aa3f3.tar.gz kube-89f4c68f548b24d983309cc7337b7c0ffe8aa3f3.zip |
Keyboard navigation for the conversation view
Removed the manual currentIndex handling again as we seem to be able to
use the regular stuff now.
Additionally the listview is now resized if we don't have enough mails,
so the first mail is shown on top.
We can also move from mail to mail using keyboard navigation.
The mail highlight also serves as focus indicator for the conversation
view in general, and as such is cleared when loosing focus.
Diffstat (limited to 'framework/qml/MailViewer.qml')
-rw-r--r-- | framework/qml/MailViewer.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index d139b3d7..42c5080c 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml | |||
@@ -230,6 +230,7 @@ Rectangle { | |||
230 | 230 | ||
231 | Kube.IconButton { | 231 | Kube.IconButton { |
232 | anchors.fill: parent | 232 | anchors.fill: parent |
233 | activeFocusOnTab: false | ||
233 | 234 | ||
234 | iconName: header.state === "details" ? Kube.Icons.goUp : Kube.Icons.goDown | 235 | iconName: header.state === "details" ? Kube.Icons.goUp : Kube.Icons.goDown |
235 | 236 | ||
@@ -352,6 +353,7 @@ Rectangle { | |||
352 | left: parent.left | 353 | left: parent.left |
353 | leftMargin: Kube.Units.largeSpacing | 354 | leftMargin: Kube.Units.largeSpacing |
354 | } | 355 | } |
356 | activeFocusOnTab: false | ||
355 | 357 | ||
356 | text: model.trash ? qsTr("Delete Mail") : qsTr("Move to trash") | 358 | text: model.trash ? qsTr("Delete Mail") : qsTr("Move to trash") |
357 | opacity: 0.5 | 359 | opacity: 0.5 |
@@ -371,6 +373,7 @@ Rectangle { | |||
371 | right: parent.right | 373 | right: parent.right |
372 | rightMargin: Kube.Units.largeSpacing | 374 | rightMargin: Kube.Units.largeSpacing |
373 | } | 375 | } |
376 | activeFocusOnTab: false | ||
374 | 377 | ||
375 | iconName: model.draft ? Kube.Icons.edit : Kube.Icons.replyToSender | 378 | iconName: model.draft ? Kube.Icons.edit : Kube.Icons.replyToSender |
376 | onClicked: { | 379 | onClicked: { |