add sound on button focus changed

Feels more consistent with hovering
This commit is contained in:
Triplelexx 2018-01-19 12:27:49 +00:00
parent e69fdba6ad
commit 44740d5716

View file

@ -32,6 +32,12 @@ Original.Button {
Tablet.playSound(TabletEnums.ButtonHover);
}
}
onFocusChanged: {
if (focus) {
Tablet.playSound(TabletEnums.ButtonHover);
}
}
onClicked: {
Tablet.playSound(TabletEnums.ButtonClick);