[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Sep 8 00:37:12 UTC 2018
loleaflet/src/map/Map.js | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit d65801299d801eb42549376d9713291226b3cc5c
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Sep 7 15:16:26 2018 +0200
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Sat Sep 8 02:36:54 2018 +0200
On desktop, focus immediately on startup to get the caret.
Change-Id: Ie33805341740e38bef657fbd7677ef7d0c14cee3
Reviewed-on: https://gerrit.libreoffice.org/60149
Reviewed-by: Henry Castro <hcastro at collabora.com>
Tested-by: Henry Castro <hcastro at collabora.com>
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index f93606bc2..79d70c5e5 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -831,6 +831,9 @@ L.Map = L.Evented.extend({
vex.dialogID = -1;
this._startInactiveTimer();
+ if (!L.Browser.mobile) {
+ this.focus();
+ }
return vex.close(id);
}
} else {
@@ -839,6 +842,9 @@ L.Map = L.Evented.extend({
}
this._startInactiveTimer();
+ if (!L.Browser.mobile) {
+ this.focus();
+ }
return false;
},
More information about the Libreoffice-commits
mailing list