diff options
author | Jan Holesovsky <kendy@collabora.com> | 2020-01-17 15:21:36 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2020-01-21 12:43:17 +0100 |
commit | 1c0fb25e90dda583d5a81bc7c228ad33d1243ddb (patch) | |
tree | b532b64ec7247099263767fc43e5aa745ca718de | |
parent | 91175c854af80ef35ee3e7a8227600e56b1cb8d6 (diff) |
android: When the cell cursor moves, focus the document.
This particularly happens when the user has entered something into the
formula input bar - after hitting Enter, the focus should return to the
sheet.
This is consistent with the desktop LibreOffece, where hitting Enter in
the formula input bar returns focus to the sheet too.
Change-Id: I020e008022e958f471d0cb31a8de986f576ba704
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86984
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r-- | loleaflet/src/layer/tile/TileLayer.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index 0d64ded2d..f031a2050 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -2838,6 +2838,10 @@ L.TileLayer = L.GridLayer.extend({ this._map.addLayer(this._cellCursorMarker); this._addDropDownMarker(); + + // when the cell cursor is moving, the user is in the document, + // and the focus should leave the cell input bar + this._map.fire('editorgotfocus'); } else if (this._cellCursorMarker) { this._map.removeLayer(this._cellCursorMarker); |