Allow toggling through combo box options using left/right on gamepads/keyboards
This commit is contained in:
@@ -50,4 +50,12 @@ ComboBox {
|
|||||||
popup.onAboutToHide: {
|
popup.onAboutToHide: {
|
||||||
SdlGamepadKeyNavigation.setUiNavMode(true)
|
SdlGamepadKeyNavigation.setUiNavMode(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Keys.onLeftPressed: {
|
||||||
|
decrementCurrentIndex()
|
||||||
|
}
|
||||||
|
|
||||||
|
Keys.onRightPressed: {
|
||||||
|
incrementCurrentIndex()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user