Commit 816d5a9e authored by Noah Davis's avatar Noah Davis 🌵
Browse files

Add clicked and moving sounds to AbstractIndicator

parent 85e7a9d7
...@@ -23,6 +23,7 @@ import QtQuick 2.2 ...@@ -23,6 +23,7 @@ import QtQuick 2.2
import QtQuick.Layouts 1.4 import QtQuick.Layouts 1.4
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents import org.kde.plasma.components 3.0 as PlasmaComponents
import org.kde.mycroft.bigscreen 1.0 as BigScreen
PlasmaComponents.Button { PlasmaComponents.Button {
...@@ -54,4 +55,20 @@ PlasmaComponents.Button { ...@@ -54,4 +55,20 @@ PlasmaComponents.Button {
Keys.onReturnPressed: { Keys.onReturnPressed: {
clicked(); clicked();
} }
onClicked: BigScreen.NavigationSoundEffects.playClickedSound()
Keys.onPressed: {
switch (event.key) {
case Qt.Key_Down:
case Qt.Key_Right:
case Qt.Key_Left:
case Qt.Key_Tab:
case Qt.Key_Backtab:
BigScreen.NavigationSoundEffects.playMovingSound();
break;
default:
break;
}
}
} }
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