add focus navigation to qml
This commit is contained in:
parent
cecee3769e
commit
01e31b4b4d
23 changed files with 103 additions and 196 deletions
|
|
@ -90,16 +90,6 @@ PageType {
|
|||
PageController.closePage()
|
||||
}
|
||||
}
|
||||
|
||||
// function onForceTabBarActiveFocus() {
|
||||
// homeTabButton.focus = true
|
||||
// tabBar.forceActiveFocus()
|
||||
// }
|
||||
|
||||
// function onForceStackActiveFocus() {
|
||||
// homeTabButton.focus = true
|
||||
// tabBarStackView.forceActiveFocus()
|
||||
// }
|
||||
}
|
||||
|
||||
Connections {
|
||||
|
|
@ -311,10 +301,6 @@ PageType {
|
|||
tabBar.currentIndex = 0
|
||||
FocusController.setRootItem(null) // TODO: move to do it automaticaly
|
||||
}
|
||||
|
||||
// KeyNavigation.tab: shareTabButton
|
||||
// Keys.onEnterPressed: this.clicked()
|
||||
// Keys.onReturnPressed: this.clicked()
|
||||
}
|
||||
|
||||
TabImageButtonType {
|
||||
|
|
@ -340,8 +326,6 @@ PageType {
|
|||
tabBarStackView.goToTabBarPage(PageEnum.PageShare)
|
||||
tabBar.currentIndex = 1
|
||||
}
|
||||
|
||||
// KeyNavigation.tab: settingsTabButton
|
||||
}
|
||||
|
||||
TabImageButtonType {
|
||||
|
|
@ -354,8 +338,6 @@ PageType {
|
|||
tabBarStackView.goToTabBarPage(PageEnum.PageSettings)
|
||||
tabBar.currentIndex = 2
|
||||
}
|
||||
|
||||
// KeyNavigation.tab: plusTabButton
|
||||
}
|
||||
|
||||
TabImageButtonType {
|
||||
|
|
@ -368,8 +350,6 @@ PageType {
|
|||
tabBarStackView.goToTabBarPage(PageEnum.PageSetupWizardConfigSource)
|
||||
tabBar.currentIndex = 3
|
||||
}
|
||||
|
||||
// Keys.onTabPressed: PageController.forceStackActiveFocus()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue