Finish keyboard navigation for GridViews and MenuItems

This commit is contained in:
Cameron Gutman 2018-09-23 19:06:26 -07:00
commit 8fb37ae229
6 changed files with 30 additions and 7 deletions

View file

@ -45,6 +45,9 @@ GridView {
else if (!prefs.hasAnyHardwareAcceleration()) {
noHwDecoderDialog.open()
}
// Don't show any highlighted item until interacting with them
currentIndex = -1
}
function pairingComplete(error)
@ -131,13 +134,13 @@ GridView {
Menu {
id: pcContextMenu
MenuItem {
NavigableMenuItem {
text: "Wake PC"
onTriggered: computerModel.wakeComputer(index)
visible: !model.addPc && !model.online && model.wakeable
height: visible ? implicitHeight : 0
}
MenuItem {
NavigableMenuItem {
text: "Delete PC"
onTriggered: {
deletePcDialog.pcIndex = index