Skip to content

Commit

Permalink
fix cmd+m shortcut to minimize the window on macos and not mute the v…
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopo-degattis authored and OothecaPickle committed Oct 6, 2024
1 parent 98a0b45 commit dd2683a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2020,9 +2020,11 @@ export default defineComponent({
break
case 'M':
case 'm':
// Toggle mute
event.preventDefault()
video_.muted = !video_.muted
// Toggle mute only if metakey is not pressed
if (!event.metaKey) {
event.preventDefault()
video_.muted = !video_.muted
}
break
case 'C':
case 'c':
Expand Down

0 comments on commit dd2683a

Please sign in to comment.