Changeset View
Changeset View
Standalone View
Standalone View
windowswitchers/compact/contents/ui/main.qml
Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Line(s) | 38 | mainItem: Item { | |||
---|---|---|---|---|---|
176 | * @li we have to emit the change signal | 176 | * @li we have to emit the change signal | ||
177 | * @li on multiple invocation it does not work on the list view. Focus seems to be lost. | 177 | * @li on multiple invocation it does not work on the list view. Focus seems to be lost. | ||
178 | **/ | 178 | **/ | ||
179 | Keys.onPressed: { | 179 | Keys.onPressed: { | ||
180 | if (event.key == Qt.Key_Up) { | 180 | if (event.key == Qt.Key_Up) { | ||
181 | compactListView.decrementCurrentIndex(); | 181 | compactListView.decrementCurrentIndex(); | ||
182 | } else if (event.key == Qt.Key_Down) { | 182 | } else if (event.key == Qt.Key_Down) { | ||
183 | compactListView.incrementCurrentIndex(); | 183 | compactListView.incrementCurrentIndex(); | ||
184 | } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { | ||||
185 | model.close(currentIndex) | ||||
184 | } | 186 | } | ||
185 | } | 187 | } | ||
186 | } | 188 | } | ||
187 | } | 189 | } | ||
188 | } | 190 | } |