Skip to content
Snippets Groups Projects
Unverified Commit fc3a0e7d authored by Sébastien Blin's avatar Sébastien Blin
Browse files

accessibility: add shortcuts to mute camera/mic during a call

Change-Id: Ib125fcac0620326d5864e577d9252e9ea9b3c3d9
GitLab: #788
parent c12086ac
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,14 @@ Window {
shortcut: "Ctrl + Shift + D"
description: qsTr("Decline the call request")
}
ListElement {
shortcut: "M"
description: qsTr("Mute the microphone (during a call)")
}
ListElement {
shortcut: "V"
description: qsTr("Mute the camera (during a call)")
}
}
Rectangle {
......
......@@ -72,6 +72,29 @@ Item {
}
}
Shortcut {
sequence: "M"
enabled: root.visible
context: Qt.ApplicationShortcut
onActivated: {
CallAdapter.muteAudioToggle()
root.opacity = 1
fadeOutTimer.restart()
}
}
Shortcut {
sequence: "V"
enabled: root.visible
context: Qt.ApplicationShortcut
onActivated: {
CallAdapter.muteCameraToggle()
root.opacity = 1
fadeOutTimer.restart()
}
}
// control overlay fade out.
Timer {
id: fadeOutTimer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment