! Fix Cmd+M unable to minimize window when viewing video (#2486)

This commit is contained in:
PikachuEXE 2022-08-16 18:57:07 +08:00 committed by GitHub
parent 4f9aa231cb
commit e0e7b5053a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1807,8 +1807,10 @@ export default Vue.extend({
case 77:
// M Key
// Toggle Mute
event.preventDefault()
this.toggleMute()
if (!event.metaKey) {
event.preventDefault()
this.toggleMute()
}
break
case 67:
// C Key