mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-17 01:32:14 +02:00
add sound on button focus changed
Feels more consistent with hovering
This commit is contained in:
parent
e69fdba6ad
commit
44740d5716
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,12 @@ Original.Button {
|
|||
Tablet.playSound(TabletEnums.ButtonHover);
|
||||
}
|
||||
}
|
||||
|
||||
onFocusChanged: {
|
||||
if (focus) {
|
||||
Tablet.playSound(TabletEnums.ButtonHover);
|
||||
}
|
||||
}
|
||||
|
||||
onClicked: {
|
||||
Tablet.playSound(TabletEnums.ButtonClick);
|
||||
|
|
Loading…
Reference in a new issue