mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Finish keyboard navigation for GridViews and MenuItems
This commit is contained in:
1 parent
2e3de32810
commit
8fb37ae229
6 files changed
+30
-7
No files matched your search
@@ -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