loleaflet/src/control/Control.Menubar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 6ba3744409db504a27ba9b19ed5451a911b29057 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue Oct 16 20:03:40 2018 -0400 Commit: Jan Holesovsky <ke...@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 <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits