Changeset View
Changeset View
Standalone View
Standalone View
windowswitchers/informative/contents/ui/main.qml
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | 30 | PlasmaCore.Dialog { | |||
---|---|---|---|---|---|
191 | * @li we have to emit the change signal | 191 | * @li we have to emit the change signal | ||
192 | * @li on multiple invocation it does not work on the list view. Focus seems to be lost. | 192 | * @li on multiple invocation it does not work on the list view. Focus seems to be lost. | ||
193 | **/ | 193 | **/ | ||
194 | Keys.onPressed: { | 194 | Keys.onPressed: { | ||
195 | if (event.key == Qt.Key_Up) { | 195 | if (event.key == Qt.Key_Up) { | ||
196 | listView.decrementCurrentIndex(); | 196 | listView.decrementCurrentIndex(); | ||
197 | } else if (event.key == Qt.Key_Down) { | 197 | } else if (event.key == Qt.Key_Down) { | ||
198 | listView.incrementCurrentIndex(); | 198 | listView.incrementCurrentIndex(); | ||
199 | } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { | ||||
200 | model.close(currentIndex) | ||||
199 | } | 201 | } | ||
200 | } | 202 | } | ||
201 | } | 203 | } | ||
202 | } | 204 | } |