! Fix code for getting event.key lowercase value (#3061)

This commit is contained in:
PikachuEXE 2023-01-14 23:01:12 +08:00 committed by GitHub
parent 97cb339ec5
commit 67b9a74ae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1823,7 +1823,7 @@ export default Vue.extend({
}
// allow copying text
if ((event.ctrlKey || event.metaKey) && event.key.lowercase() === 'c') {
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'c') {
return
}