summaryrefslogtreecommitdiffstats
path: root/framework/qml/MailListView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml/MailListView.qml')
-rw-r--r--framework/qml/MailListView.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml
index a0921a6e..eff3f921 100644
--- a/framework/qml/MailListView.qml
+++ b/framework/qml/MailListView.qml
@@ -23,7 +23,7 @@ import QtQuick.Layouts 1.1
23 23
24import org.kube.framework 1.0 as Kube 24import org.kube.framework 1.0 as Kube
25 25
26Item { 26FocusScope {
27 id: root 27 id: root
28 //Private properties 28 //Private properties
29 property variant parentFolder: null 29 property variant parentFolder: null
@@ -68,12 +68,19 @@ Item {
68 68
69 anchors.fill: parent 69 anchors.fill: parent
70 clip: true 70 clip: true
71 focus: true
71 72
72 ScrollBar.vertical: ScrollBar{ 73 ScrollBar.vertical: ScrollBar{
73 id: scrollbar 74 id: scrollbar
74 } 75 }
75 76
76 //BEGIN keyboard nav 77 //BEGIN keyboard nav
78 onActiveFocusChanged: {
79 if (activeFocus && currentIndex < 0) {
80 currentIndex = 0
81 }
82 }
83
77 Keys.onDownPressed: { 84 Keys.onDownPressed: {
78 incrementCurrentIndex() 85 incrementCurrentIndex()
79 } 86 }