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