Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMert Tumer <mert.tumer@collabora.com>2022-08-09 11:14:21 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-08-11 13:53:29 +0300
commit66c706ab3cca3a4e44cabc65f7f2b51586e4b88e (patch)
treec57a044cd82a82d5272d7e5a770ff9cc8379aff0
parent7d38efbcc21e8099ffdb01d01501f1c804f2acf3 (diff)
fix safari does not focus to document frame on startup
To reproduce the issue on safari or a webkit browser: Open a document and just start typing and the typing does not appear even though cursor is blinking on the document. Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
-rw-r--r--src/document.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/document.js b/src/document.js
index b1286475..c43692b6 100644
--- a/src/document.js
+++ b/src/document.js
@@ -195,6 +195,7 @@ const documentsMain = {
$('#revViewer').append(form)
$('#revViewer').append(frame)
+ $('#loleafletframe_viewer').focus()
// submit that
$('#loleafletform_viewer').submit()
@@ -250,6 +251,7 @@ const documentsMain = {
$('#mainContainer').append(form)
$('#mainContainer').append(frame)
+ $('#loleafletframe').focus()
emit('richdocuments:wopi-load:started', {
wopiFileId: fileId,