Skip to content

Commit 02004ba

Browse files
committed
Allow toggling through combo box options using left/right on gamepads/keyboards
1 parent 7c93aaf commit 02004ba

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

app/gui/AutoResizingComboBox.qml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ ComboBox {
5050
popup.onAboutToHide: {
5151
SdlGamepadKeyNavigation.setUiNavMode(true)
5252
}
53+
54+
Keys.onLeftPressed: {
55+
decrementCurrentIndex()
56+
}
57+
58+
Keys.onRightPressed: {
59+
incrementCurrentIndex()
60+
}
5361
}

0 commit comments

Comments
 (0)