diff options
-rw-r--r-- | components/mail/contents/ui/main.qml | 23 | ||||
-rw-r--r-- | components/package/contents/ui/MailListView.qml | 2 |
2 files changed, 24 insertions, 1 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index 279e280d..405458c6 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | 19 | ||
20 | import QtQuick 2.4 | 20 | import QtQuick 2.7 |
21 | import QtQuick.Controls 1.3 | 21 | import QtQuick.Controls 1.3 |
22 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 |
23 | import org.kde.kirigami 1.0 as Kirigami | 23 | import org.kde.kirigami 1.0 as Kirigami |
@@ -83,6 +83,27 @@ ApplicationWindow { | |||
83 | } | 83 | } |
84 | //END Actions | 84 | //END Actions |
85 | 85 | ||
86 | //BEGIN Shortcuts | ||
87 | Shortcut { | ||
88 | sequence: StandardKey.Refresh | ||
89 | onActivated: syncAction.execute() | ||
90 | enabled: syncAction.ready | ||
91 | } | ||
92 | Shortcut { | ||
93 | sequence: StandardKey.Delete | ||
94 | onActivated: deleteAction.execute() | ||
95 | enabled: deleteAction.ready | ||
96 | } | ||
97 | Shortcut { | ||
98 | sequence: StandardKey.MoveToNextLine | ||
99 | onActivated: mailListView.currentIndex++ | ||
100 | } | ||
101 | Shortcut { | ||
102 | sequence: StandardKey.MoveToPreviousLine | ||
103 | onActivated: mailListView.currentIndex-- | ||
104 | } | ||
105 | //END Shortcuts | ||
106 | |||
86 | //BEGIN Main content | 107 | //BEGIN Main content |
87 | SplitView { | 108 | SplitView { |
88 | anchors { | 109 | anchors { |
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml index 282bf250..bedeeec5 100644 --- a/components/package/contents/ui/MailListView.qml +++ b/components/package/contents/ui/MailListView.qml | |||
@@ -30,6 +30,7 @@ Controls.ScrollView { | |||
30 | property variant parentFolder | 30 | property variant parentFolder |
31 | property variant currentMail | 31 | property variant currentMail |
32 | property bool isDraft : false | 32 | property bool isDraft : false |
33 | property int currentIndex | ||
33 | 34 | ||
34 | onParentFolderChanged: { | 35 | onParentFolderChanged: { |
35 | currentMail = null | 36 | currentMail = null |
@@ -37,6 +38,7 @@ Controls.ScrollView { | |||
37 | 38 | ||
38 | ListView { | 39 | ListView { |
39 | id: listView | 40 | id: listView |
41 | currentIndex: root.currentIndex | ||
40 | 42 | ||
41 | model: KubeFramework.MailListModel { | 43 | model: KubeFramework.MailListModel { |
42 | parentFolder: root.parentFolder | 44 | parentFolder: root.parentFolder |