diff --git a/src/app/mainview/components/KeyboardShortcutTable.qml b/src/app/mainview/components/KeyboardShortcutTable.qml index 7c64d6b136ebc55453fd89a245aebfe5e49964b4..3ab16c042dde3cbaa14f8a4530197b0efcf1d7e8 100644 --- a/src/app/mainview/components/KeyboardShortcutTable.qml +++ b/src/app/mainview/components/KeyboardShortcutTable.qml @@ -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 { diff --git a/src/app/mainview/components/MainOverlay.qml b/src/app/mainview/components/MainOverlay.qml index 08d899104e6b89f6b8534b004399835f821cd35a..7ecedde7c0c6f2626ff678c7d21f85e301b1b04d 100644 --- a/src/app/mainview/components/MainOverlay.qml +++ b/src/app/mainview/components/MainOverlay.qml @@ -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