Commit c5629ec4 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[Breeze task switcher] Move key handling to the correct place

All other task switchers have the key handling in the mainItem, but
this one does not. As a result, it doesn't work. This fixes it.
parent 6a7ff735
......@@ -128,18 +128,19 @@ KWin.Switcher {
highlight: PlasmaComponents.Highlight {}
}
}
/*
* Key navigation on outer item for two reasons:
* @li we have to emit the change signal
* @li on multiple invocation it does not work on the list view. Focus seems to be lost.
**/
Keys.onPressed: {
if (event.key === Qt.Key_Up) {
icons.decrementCurrentIndex();
} else if (event.key === Qt.Key_Down) {
icons.incrementCurrentIndex();
}
/*
* Key navigation on outer item for two reasons:
* @li we have to emit the change signal
* @li on multiple invocation it does not work on the list view. Focus seems to be lost.
**/
Keys.onPressed: {
if (event.key === Qt.Key_Up) {
icons.decrementCurrentIndex();
} else if (event.key === Qt.Key_Down) {
icons.incrementCurrentIndex();
}
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment