Commit 80bd32b1 authored by Zren (Chris Holland)'s avatar Zren (Chris Holland)

Consistent arrow key handling in the Informative Alt+Tab skin

Moved `Dialog.Keys.onPressed` to `Dialog.mainItem.Keys.onPressed` so
that all tabbox skins are consistent. This fixes up/down arrow key
navigation in this skin.

CCBUG: 370185

Differential Revision: https://phabricator.kde.org/D16093
parent 100626f4
......@@ -185,17 +185,18 @@ KWin.Switcher {
onCurrentIndexChanged: {listView.currentIndex = tabBox.currentIndex;}
}
}
}
/*
* 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) {
listView.decrementCurrentIndex();
} else if (event.key == Qt.Key_Down) {
listView.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) {
listView.decrementCurrentIndex();
} else if (event.key == Qt.Key_Down) {
listView.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