Skip to content

Commit

Permalink
Merge pull request bigbluebutton#21058 from KDSBrowne/v30-ptt-update
Browse files Browse the repository at this point in the history
fix: Push to talk intercepting shortcut with modifier
  • Loading branch information
gustavotrott authored Aug 29, 2024
2 parents 67e0caa + 8a0231a commit 1eafe4b
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,14 @@ export const MuteToggle: React.FC<MuteToggleProps> = ({
|| activeElement.isContentEditable);
const Settings = getSettingsSingletonInstance();
const pushToTalkEnabled = Settings?.application?.pushToTalkEnabled;
if ((cooldownActive.current || event.key !== 'm' || isInputField) || !pushToTalkEnabled) {
return;
}
if (
!pushToTalkEnabled
|| cooldownActive.current
|| event.key !== 'm'
|| event.altKey
|| event.ctrlKey
|| isInputField
) return;

if (action === 'down' && !isKeyDown.current) {
isKeyDown.current = true;
Expand Down

0 comments on commit 1eafe4b

Please sign in to comment.