adding key navigation focusing code
This commit is contained in:
parent
2541c61eb6
commit
4f0ab74fa1
1 changed files with 7 additions and 0 deletions
|
@ -39,6 +39,7 @@ Controls.Page {
|
||||||
|
|
||||||
property string editType
|
property string editType
|
||||||
|
|
||||||
|
Component.onCompleted: refocusTimer.start()
|
||||||
Item {
|
Item {
|
||||||
id: mainItem
|
id: mainItem
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -130,6 +131,12 @@ Controls.Page {
|
||||||
id: serviceItemModel
|
id: serviceItemModel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Timer {
|
||||||
|
id: refocusTimer
|
||||||
|
interval: 500
|
||||||
|
repeat: true
|
||||||
|
onTriggered: keyHandler.forceActiveFocus()
|
||||||
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: keyHandler
|
id: keyHandler
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue