[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 8 21:16:08 UTC 2018
loleaflet/src/control/Control.Menubar.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 6ba3744409db504a27ba9b19ed5451a911b29057
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Tue Oct 16 20:03:40 2018 -0400
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Nov 8 22:15:51 2018 +0100
loleaflet: mobile: do not focus the map after the menu item click
Change-Id: I796c81a5df3471ab2cb9bb36735ad05f6e8f4492
Reviewed-on: https://gerrit.libreoffice.org/61860
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 60a6b9140..b9f59ff61 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -769,8 +769,8 @@ L.Control.Menubar = L.Control.extend({
self._executeAction(item);
}
- if ($(item).data('id') !== 'insertcomment')
- map.focus();
+ if (!L.Browser.mobile && $(item).data('id') !== 'insertcomment')
+ self._map.focus();
},
_createMenu: function(menu) {
More information about the Libreoffice-commits
mailing list