[Libreoffice-commits] online.git: loleaflet/src
Jan Holesovsky (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 21 11:43:35 UTC 2020
loleaflet/src/layer/tile/TileLayer.js | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 1c0fb25e90dda583d5a81bc7c228ad33d1243ddb
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Jan 17 15:21:36 2020 +0100
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Tue Jan 21 12:43:17 2020 +0100
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 at gmail.com>
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
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);
More information about the Libreoffice-commits
mailing list