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

@@ -173,7 +173,7 @@ class LoaderPage extends Vue {
//недостатки сторонних ui
const input = this.$refs.input.$refs.input;
if (document.activeElement === input && event.type == 'keydown' && event.code == 'Enter') {
if (document.activeElement === input && event.type == 'keydown' && event.key == 'Enter') {
this.submitUrl();
return true;
}