loleaflet/src/control/Control.Menubar.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
New commits: commit 79468654f54358c77ee8240053cccdd69fc055b3 Author: Florin Ciornei <florin.cior...@collabora.com> AuthorDate: Thu May 23 13:46:22 2019 +0200 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Thu May 23 17:13:48 2019 +0200 Set focus on document after closing copy/paste/cut warning. Change-Id: I4e241278bea441f77e6b7780d69e540f9e6d4771 Reviewed-on: https://gerrit.libreoffice.org/72838 Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Michael Meeks <michael.me...@collabora.com> diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index d4379c20a..a8c3dd50f 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -794,7 +794,14 @@ L.Control.Menubar = L.Control.extend({ } else if (id === 'repair') { this._map._socket.sendMessage('commandvalues command=.uno:DocumentRepair'); } else if (id === 'warn-copy-paste') { - vex.dialog.alert(_('<p>Your browser has very limited access to the clipboard, so use these keyboard shortcuts:<ul><li><b>Ctrl+C</b>: For copying.</li><li><b>Ctrl+X</b>: For cutting.</li><li><b>Ctrl+V</b>: For pasting.</li></ul></p>')); + var self = this; + vex.dialog.alert({ + message: _('<p>Your browser has very limited access to the clipboard, so use these keyboard shortcuts:<ul><li><b>Ctrl+C</b>: For copying.</li><li><b>Ctrl+X</b>: For cutting.</li><li><b>Ctrl+V</b>: For pasting.</li></ul></p>'), + callback: function () { + self._map.focus(); + } + }); + } // Inform the host if asked if ($(item).data('postmessage') === 'true') { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits