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@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
Ashod Nakashian 2020-01-14 06:46:17 -05:00 committed by Michael Meeks
parent 4619ac73ff
commit f0d6b619e9

View file

@ -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;