[Libreoffice-commits] online.git: loleaflet/src

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Tue Jan 14 12:03:01 UTC 2020


 loleaflet/src/control/Control.LokDialog.js |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit f0d6b619e98a399dd667cbdb9000700046795e59
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Tue Jan 14 06:46:17 2020 -0500
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Tue Jan 14 13:02:40 2020 +0100

    leaflet: give focus to the dialog on open
    
    Change-Id: I715025123edf2bcf0564b5ce43c16b5595daed5b
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86754
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index 2abdc0246..a0e9ff9b8 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -1026,6 +1026,9 @@ L.Control.LokDialog = L.Control.extend({
 			if (parentId in that._dialogs) {
 				// We might have closed the dialog by the time we render.
 				that._dialogs[parentId].isPainting = false;
+				if (!that._isSidebar(parentId)) {
+					that.focus(parentId);
+				}
 			}
 		};
 		img.src = imgData;


More information about the Libreoffice-commits mailing list