Changeset View
Changeset View
Standalone View
Standalone View
windowswitchers/text/contents/ui/main.qml
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Line(s) | 38 | mainItem: Item { | |||
---|---|---|---|---|---|
146 | * @li we have to emit the change signal | 146 | * @li we have to emit the change signal | ||
147 | * @li on multiple invocation it does not work on the list view. Focus seems to be lost. | 147 | * @li on multiple invocation it does not work on the list view. Focus seems to be lost. | ||
148 | **/ | 148 | **/ | ||
149 | Keys.onPressed: { | 149 | Keys.onPressed: { | ||
150 | if (event.key == Qt.Key_Up) { | 150 | if (event.key == Qt.Key_Up) { | ||
151 | textListView.decrementCurrentIndex(); | 151 | textListView.decrementCurrentIndex(); | ||
152 | } else if (event.key == Qt.Key_Down) { | 152 | } else if (event.key == Qt.Key_Down) { | ||
153 | textListView.incrementCurrentIndex(); | 153 | textListView.incrementCurrentIndex(); | ||
154 | } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { | ||||
155 | model.close(currentIndex) | ||||
154 | } | 156 | } | ||
155 | } | 157 | } | ||
156 | } | 158 | } | ||
157 | } | 159 | } | ||
158 | } | 160 | } |