diff --git a/react/features/toolbox/components/AudioMuteButton.js b/react/features/toolbox/components/AudioMuteButton.js index 41d982e55..458ae7158 100644 --- a/react/features/toolbox/components/AudioMuteButton.js +++ b/react/features/toolbox/components/AudioMuteButton.js @@ -109,6 +109,11 @@ class AudioMuteButton extends AbstractAudioMuteButton { * @returns {void} */ _onKeyboardShortcut() { + // Ignore keyboard shortcuts if the audio button is disabled. + if (this._isDisabled()) { + return; + } + sendAnalytics( createShortcutEvent( AUDIO_MUTE, diff --git a/react/features/toolbox/components/VideoMuteButton.js b/react/features/toolbox/components/VideoMuteButton.js index 093213ccc..914d4b3b1 100644 --- a/react/features/toolbox/components/VideoMuteButton.js +++ b/react/features/toolbox/components/VideoMuteButton.js @@ -135,6 +135,11 @@ class VideoMuteButton extends AbstractVideoMuteButton { * @returns {void} */ _onKeyboardShortcut() { + // Ignore keyboard shortcuts if the video button is disabled. + if (this._isDisabled()) { + return; + } + sendAnalytics( createShortcutEvent( VIDEO_MUTE,