Skip to content

Commit

Permalink
Set focus on delegate with key navigation (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
AIIX authored and notmart committed Nov 1, 2019
1 parent ec75cbe commit c5243f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions import/qml/SkillView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,11 @@ Mycroft.AbstractSkillView {

Keys.onLeftPressed: {
delegatesView.currentIndex--
delegatesView.currentItem.contentItem.forceActiveFocus()
}
Keys.onRightPressed: {
delegatesView.currentIndex++
delegatesView.currentItem.contentItem.forceActiveFocus()
}

Connections {
Expand Down

0 comments on commit c5243f6

Please sign in to comment.