! Fix Ctrl/Cmd + C unable to copy text when viewing video (#3027)

This commit is contained in:
PikachuEXE 2023-01-04 02:20:16 +08:00 committed by GitHub
parent 43a25f8738
commit 0d0d64d957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1822,6 +1822,11 @@ export default Vue.extend({
return
}
// allow copying text
if ((event.ctrlKey || event.metaKey) && event.key.lowercase() === 'c') {
return
}
if (this.player !== null) {
switch (event.key) {
case ' ':