Skip to content

Commit

Permalink
fix m shortcut intercepting alt + m
Browse files Browse the repository at this point in the history
  • Loading branch information
KDSBrowne committed Aug 29, 2024
1 parent 67e0caa commit 8a0231a
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 8a0231a

Please sign in to comment.