Skip to content

Commit

Permalink
leaflet: calc: focused input bar: sheet doesn't get focus on first click
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Marco Cecchetti <[email protected]>
  • Loading branch information
mcecchetti committed Apr 29, 2020
1 parent 4c3708e commit 1f289b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loleaflet/src/layer/tile/TileLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f289b1

Please sign in to comment.