Вернул обратно хук на keydown
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user