Commit 2a3680ec authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/modules/Common/Form/ExclusiveButtons): supports left/right clicks

parent c153ce19
......@@ -22,7 +22,23 @@ Row {
spacing: ExclusiveButtonsStyle.buttonsSpacing
Keys.onLeftPressed: {
if (selectedButton > 0) {
clicked(--selectedButton)
}
}
Keys.onRightPressed: {
if (selectedButton < repeater.count - 1) {
clicked(++selectedButton)
}
}
// ---------------------------------------------------------------------------
Repeater {
id: repeater
model: texts
SmallButton {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment