! 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

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 ' ':