@@ -48,17 +48,6 @@ Item {
4848 return session;
4949 }
5050
51− QtObject {
52− id: d
53− // Track if the session has changed and the list is still shown.
54− // This is currently only possible/reasonable with keyboard navigation
55− property bool sessionChanged: false
56− function sessionSelected(currentKey) {
57− d.sessionChanged = true;
58− root.sessionSelected(currentKey)
59− }
60− }
61−
6251 Keys.onEnterPressed: {
6352 showLoginList(); // Session is already selected
6453 event.accepted = true;
@@ -77,14 +66,14 @@ Item {
7766 Keys.onDownPressed: {
7867 if (sessionsList.currentIndex < sessionsList.model.count - 1)
7968 sessionsList.currentIndex++;
80− d.sessionSelected(currentKey());
69+ sessionSelected(currentKey());
8170 event.accepted = true;
8271 }
8372
8473 Keys.onUpPressed: {
8574 if (sessionsList.currentIndex > 0)
8675 sessionsList.currentIndex--;
87− d.sessionSelected(currentKey());
76+ sessionSelected(currentKey());
8877 event.accepted = true;
8978 }
9079
@@ -172,8 +161,7 @@ Item {
172161 width: parent.width
173162 color: "transparent"
174163 border {
175− color: d.sessionChanged ? theme.palette.normal.focus
176− : theme.palette.normal.positionText
164+ color: theme.palette.normal.focus
177165 width: units.gu(0.2)
178166 }
179167