Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/ItemListView.qml
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Line(s) | 219 | } else if (event.key == Qt.Key_Down) { | |||
---|---|---|---|---|---|
228 | showChildDialogs = false; | 228 | showChildDialogs = false; | ||
229 | incrementCurrentIndex(); | 229 | incrementCurrentIndex(); | ||
230 | 230 | | |||
231 | if (currentItem.isSeparator) { | 231 | if (currentItem.isSeparator) { | ||
232 | incrementCurrentIndex(); | 232 | incrementCurrentIndex(); | ||
233 | } | 233 | } | ||
234 | 234 | | |||
235 | showChildDialogs = true; | 235 | showChildDialogs = true; | ||
236 | } else if (event.key == Qt.Key_Right && childDialog != null) { | 236 | } else if ((event.key == Qt.Key_Right || event.key == Qt.Key_Return || event.key == Qt.Key_Enter) && childDialog != null) { | ||
237 | windowSystem.forceActive(childDialog.mainItem); | 237 | windowSystem.forceActive(childDialog.mainItem); | ||
238 | childDialog.mainItem.focus = true; | 238 | childDialog.mainItem.focus = true; | ||
239 | childDialog.mainItem.currentIndex = 0; | 239 | childDialog.mainItem.currentIndex = 0; | ||
240 | } else if (event.key == Qt.Key_Right && childDialog == null | 240 | } else if ((event.key == Qt.Key_Right || event.key == Qt.Key_Return || event.key == Qt.Key_Enter) && childDialog == null | ||
241 | && currentItem != null && currentItem.hasChildren) { | 241 | && currentItem != null && currentItem.hasChildren) { | ||
242 | dialogSpawnTimer.focusOnSpawn = true; | 242 | dialogSpawnTimer.focusOnSpawn = true; | ||
243 | dialogSpawnTimer.restart(); | 243 | dialogSpawnTimer.restart(); | ||
244 | } else if (event.key == Qt.Key_Left && dialog != null) { | 244 | } else if (event.key == Qt.Key_Left && dialog != null) { | ||
245 | dialog.destroy(); | 245 | dialog.destroy(); | ||
246 | } else if (event.key == Qt.Key_Escape) { | 246 | } else if (event.key == Qt.Key_Escape) { | ||
247 | plasmoid.expanded = false; | 247 | plasmoid.expanded = false; | ||
248 | } else if (event.key == Qt.Key_Tab) { | ||||
249 | //do nothing, and skip appending text | ||||
248 | } else if (event.text != "") { | 250 | } else if (event.text != "") { | ||
249 | appendSearchText(event.text); | 251 | appendSearchText(event.text); | ||
250 | } | 252 | } | ||
251 | } | 253 | } | ||
252 | } | 254 | } | ||
253 | } | 255 | } | ||
254 | } | 256 | } | ||
255 | 257 | | |||
256 | Component.onCompleted: { | 258 | Component.onCompleted: { | ||
257 | if (dialog == null) { | 259 | if (dialog == null) { | ||
258 | appendSearchText.connect(root.appendSearchText); | 260 | appendSearchText.connect(root.appendSearchText); | ||
259 | } | 261 | } | ||
260 | } | 262 | } | ||
261 | } | 263 | } |