Замена event.code на event.key

This commit is contained in:
Book Pauk
2020-10-30 19:07:33 +07:00
parent b1ec4df2e4
commit 3109104928
10 changed files with 12 additions and 12 deletions

View File

@@ -95,7 +95,7 @@ class CopyTextPage extends Vue {
}
keyHook(event) {
if (event.type == 'keydown' && (event.code == 'Escape')) {
if (event.type == 'keydown' && event.key == 'Escape') {
this.close();
}
return true;