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:
parent
4619ac73ff
commit
f0d6b619e9
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue