Finish keyboard navigation for GridViews and MenuItems
This commit is contained in:
parent
2e3de32810
commit
8fb37ae229
6 changed files with 30 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue