diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-01-14 06:46:17 -0500 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-01-14 13:02:40 +0100 |
commit | f0d6b619e98a399dd667cbdb9000700046795e59 (patch) | |
tree | c5b9893ddc8ca9d72a92bc43f351658d9f40d262 | |
parent | 4619ac73ffb31ce7f3bb30accb5a5be116529bff (diff) |
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>
-rw-r--r-- | loleaflet/src/control/Control.LokDialog.js | 3 |
1 files changed, 3 insertions, 0 deletions
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; |