on xenial help sign in
Help keyboard focus work a little better
8e1c121Dalton Durst
qml/Launcher/Drawer.qml+10−2
@@ -46,6 +46,16 @@ FocusScope {
46 focusInput();
46 focusInput();
47 searchField.text = event.text;
47 searchField.text = event.text;
48 }
48 }
49+ switch (event.key) {
50+ case Qt.Key_Right:
51+ case Qt.Key_Left:
52+ case Qt.Key_Down:
53+ appList.focus = true;
54+ break;
55+ case Qt.Key_Up:
56+ focusInput();
57+ break;
58+ }
49 // Catch all presses here in case the navigation lets something through
59 // Catch all presses here in case the navigation lets something through
50 // We never want to end up in the launcher with focus
60 // We never want to end up in the launcher with focus
51 event.accepted = true;
61 event.accepted = true;
@@ -122,8 +132,6 @@ FocusScope {
122 height: rows * delegateHeight
132 height: rows * delegateHeight
123 clip: true
133 clip: true
124
134
125− focus: index == aToZListView.currentIndex
126−
127 model: AppDrawerProxyModel {
135 model: AppDrawerProxyModel {
128 id: categoryModel
136 id: categoryModel
129 source: sortProxyModel
137 source: sortProxyModel