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:
+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