diff --git a/client/components/Reader/LoaderPage/LoaderPage.vue b/client/components/Reader/LoaderPage/LoaderPage.vue
index 32a4ca52..66c2679e 100644
--- a/client/components/Reader/LoaderPage/LoaderPage.vue
+++ b/client/components/Reader/LoaderPage/LoaderPage.vue
@@ -28,6 +28,7 @@
+
Из буфера обмена
@@ -65,6 +66,7 @@ import GithubCorner from './GithubCorner/GithubCorner.vue';
import PasteTextPage from './PasteTextPage/PasteTextPage.vue';
import {versionHistory} from '../versionHistory';
+import * as utils from '../../../share/utils';
const componentOptions = {
components: {
@@ -171,8 +173,9 @@ class LoaderPage {
window.open('http://old.omnireader.ru', '_blank');
}
- onInputKeydown(event) {
+ async onInputKeydown(event) {
if (event.key == 'Enter') {
+ await utils.sleep(100);
this.submitUrl();
}
}
@@ -183,6 +186,10 @@ class LoaderPage {
}
const input = this.$refs.input.getNativeElement();
+ if (event.type == 'keydown' && document.activeElement === input)
+ return true;
+
+ /*const input = this.$refs.input.getNativeElement();
if (event.type == 'keydown' && document.activeElement !== input) {
const action = this.$root.readerActionByKeyEvent(event);
switch (action) {
@@ -190,7 +197,7 @@ class LoaderPage {
this.openHelp(event);
return true;
}
- }
+ }*/
return false;
}
diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue
index 24dbfbd9..39bf8906 100644
--- a/client/components/Reader/Reader.vue
+++ b/client/components/Reader/Reader.vue
@@ -17,6 +17,13 @@
+
+