diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-14 20:51:32 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-14 20:51:32 +0100 |
commit | 75b53d8d54ac157c41594284f9d5ab80b8a1e5df (patch) | |
tree | ee4e4dab210f0d70a70f38b2cf0a20cc6afb99fa /components/mail/contents/ui/main.qml | |
parent | ce3a9e1cf5c6118e49a9842687df572294302cf9 (diff) | |
download | kube-75b53d8d54ac157c41594284f9d5ab80b8a1e5df.tar.gz kube-75b53d8d54ac157c41594284f9d5ab80b8a1e5df.zip |
Some basic shortcuts.
Diffstat (limited to 'components/mail/contents/ui/main.qml')
-rw-r--r-- | components/mail/contents/ui/main.qml | 23 |
1 files changed, 22 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 { |