mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 14:00:08 +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
+7
-1
@@ -26,7 +26,7 @@ ApplicationWindow {
|
||||
focus: true
|
||||
|
||||
onCurrentItemChanged: {
|
||||
// Ensure focus travels to the next view
|
||||
// Ensure focus travels to the next view when going back
|
||||
if (currentItem) {
|
||||
currentItem.forceActiveFocus()
|
||||
}
|
||||
@@ -37,6 +37,12 @@ ApplicationWindow {
|
||||
stackView.pop()
|
||||
}
|
||||
}
|
||||
|
||||
Keys.onBackPressed: {
|
||||
if (depth > 1) {
|
||||
stackView.pop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onVisibilityChanged: {
|
||||
|
||||
Reference in new issue
Block a user