Небольшие поправки
This commit is contained in:
@@ -92,10 +92,13 @@ class App extends Vue {
|
|||||||
|
|
||||||
document.addEventListener('keyup', (event) => {
|
document.addEventListener('keyup', (event) => {
|
||||||
this.keyHook(event);
|
this.keyHook(event);
|
||||||
});
|
});
|
||||||
|
document.addEventListener('keypress', (event) => {
|
||||||
|
this.keyHook(event);
|
||||||
|
});
|
||||||
document.addEventListener('keydown', (event) => {
|
document.addEventListener('keydown', (event) => {
|
||||||
this.keyHook(event);
|
this.keyHook(event);
|
||||||
});
|
});
|
||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
this.$root.$emit('resize');
|
this.$root.$emit('resize');
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -498,7 +498,7 @@ class ExternalLibs extends Vue {
|
|||||||
|
|
||||||
//недостатки сторонних ui
|
//недостатки сторонних ui
|
||||||
const input = this.$refs.input.$refs.input;
|
const input = this.$refs.input.$refs.input;
|
||||||
if (document.activeElement === input && event.type == 'keydown' && event.code == 'Enter') {
|
if (document.activeElement === input && event.type == 'keypress' && event.code == 'Enter') {
|
||||||
this.submitUrl();
|
this.submitUrl();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ class LoaderPage extends Vue {
|
|||||||
|
|
||||||
//недостатки сторонних ui
|
//недостатки сторонних ui
|
||||||
const input = this.$refs.input.$refs.input;
|
const input = this.$refs.input.$refs.input;
|
||||||
if (document.activeElement === input && event.type == 'keydown' && event.code == 'Enter') {
|
if (document.activeElement === input && event.type == 'keypress' && event.code == 'Enter') {
|
||||||
this.submitUrl();
|
this.submitUrl();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user