[Libreoffice-commits] online.git: loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Sep 7 13:18:44 UTC 2018
loleaflet/src/map/Map.js | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 2a2281692cd41d0a56a7f92f6574d48119f57346
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Sep 7 15:16:26 2018 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Fri Sep 7 15:18:27 2018 +0200
On desktop, focus immediately on startup to get the caret.
Change-Id: Ie33805341740e38bef657fbd7677ef7d0c14cee3
Reviewed-on: https://gerrit.libreoffice.org/60151
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index be298a6df..b5ca2c464 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -835,6 +835,9 @@ L.Map = L.Evented.extend({
vex.dialogID = -1;
this._startInactiveTimer();
+ if (!L.Browser.mobile) {
+ this.focus();
+ }
return vex.close(id);
}
} else {
@@ -843,6 +846,9 @@ L.Map = L.Evented.extend({
}
this._startInactiveTimer();
+ if (!L.Browser.mobile) {
+ this.focus();
+ }
return false;
},
More information about the Libreoffice-commits
mailing list