Поправка багов
This commit is contained in:
@@ -186,19 +186,9 @@ class LoaderPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const input = this.$refs.input.getNativeElement();
|
const input = this.$refs.input.getNativeElement();
|
||||||
if (event.type == 'keydown' && document.activeElement === input)
|
if (event.type == 'keydown' && (document.activeElement === input || event.code == 'Enter') && event.code != 'Escape')
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
/*const input = this.$refs.input.getNativeElement();
|
|
||||||
if (event.type == 'keydown' && document.activeElement !== input) {
|
|
||||||
const action = this.$root.readerActionByKeyEvent(event);
|
|
||||||
switch (action) {
|
|
||||||
case 'help':
|
|
||||||
this.openHelp(event);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user