Замена 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

@@ -499,7 +499,7 @@ class SettingsPage extends Vue {
}
keyHook(event) {
if (!this.$root.stdDialog.active && event.type == 'keydown' && event.code == 'Escape') {
if (!this.$root.stdDialog.active && event.type == 'keydown' && event.key == 'Escape') {
this.close();
}
return true;