Вернул обратно хук на keydown

This commit is contained in:
Book Pauk
2020-10-30 18:15:12 +07:00
parent 1609e149a8
commit b1ec4df2e4
2 changed files with 2 additions and 2 deletions

View File

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

View File

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