leaflet: calc: focused input bar: sheet doesn't get focus on first click

When the formula bar has focus, the user needs to click twice on the
grid in order to have the document get focus.

Change-Id: I743aae7294c1fd6f0bf6abfbfcfcbfa1a41c70a5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92124
Tested-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
This commit is contained in:
Marco Cecchetti 2020-04-10 15:02:47 +02:00
parent 4c3708e076
commit 1f289b1a4d

View file

@ -2081,7 +2081,7 @@ L.TileLayer = L.GridLayer.extend({
_postMouseEvent: function(type, x, y, count, buttons, modifier) {
if (this._map.calcInputBarHasFocus()) {
if (this._map.calcInputBarHasFocus() && type === 'move') {
// When the Formula-bar has the focus, sending
// mouse move with the document coordinates
// hides the cursor (lost focus?). This is clearly