mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-15 21:22:40 +00:00
Finish keyboard navigation for GridViews and MenuItems
This commit is contained in:
@@ -4,6 +4,8 @@ import QtQuick.Controls 2.2
|
||||
ItemDelegate {
|
||||
property GridView grid
|
||||
|
||||
highlighted: grid.activeFocus && grid.currentItem === this
|
||||
|
||||
Keys.onLeftPressed: {
|
||||
grid.moveCurrentIndexLeft()
|
||||
}
|
||||
@@ -13,11 +15,9 @@ ItemDelegate {
|
||||
Keys.onDownPressed: {
|
||||
grid.moveCurrentIndexDown()
|
||||
}
|
||||
|
||||
Keys.onUpPressed: {
|
||||
grid.moveCurrentIndexUp()
|
||||
}
|
||||
|
||||
Keys.onReturnPressed: {
|
||||
clicked()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user