Commit faffe49e authored by Noah Davis's avatar Noah Davis 🌵
Browse files

systemtray HiddenItemsView: allow Return, Enter, Space and Select to activate items

parent 306c0d6f
Pipeline #128709 passed with stage
in 8 minutes and 58 seconds
......@@ -61,5 +61,19 @@ PlasmaComponents3.ScrollView {
} else if (!activeFocus && currentIndex >= 0) {
currentIndex = -1
}
Keys.priority: Keys.AfterItem
Keys.onPressed: if (currentItem && currentItem.item) {
switch (event.key) {
case Qt.Key_Return:
case Qt.Key_Enter:
case Qt.Key_Space:
case Qt.Key_Select:
currentItem.item.activated(Qt.point(width/2, height/2))
event.accepted = true
break
default: break
}
}
}
}
Supports Markdown
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