Finish keyboard navigation for GridViews and MenuItems

This commit is contained in:
Cameron Gutman
2018-09-23 19:06:26 -07:00
parent 2e3de32810
commit 8fb37ae229
6 changed files with 30 additions and 7 deletions
+7 -1
View File
@@ -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: {