Mobile: long-press on a selection, should not kill the selection
Don't clear selection unconditionally. _clearSearchResults() method is called by mouse click and we don't want to clear selection during opening a context menu. If there is any search term then we can clear the selection, otherwise don't change it. Change-Id: I8f672e4d6d30e9bb3828a39e591a64598a7a8722 Reviewed-on: https://gerrit.libreoffice.org/84885 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
parent
9cc80474a8
commit
4d5a3efb8f
1 changed files with 3 additions and 1 deletions
|
@ -1423,11 +1423,13 @@ L.TileLayer = L.GridLayer.extend({
|
|||
},
|
||||
|
||||
_clearSearchResults: function() {
|
||||
if (this._searchTerm) {
|
||||
this._selections.clearLayers();
|
||||
}
|
||||
this._lastSearchResult = null;
|
||||
this._searchResults = null;
|
||||
this._searchTerm = null;
|
||||
this._searchResultsLayer.clearLayers();
|
||||
this._selections.clearLayers();
|
||||
},
|
||||
|
||||
_drawSearchResults: function() {
|
||||
|
|
Loading…
Reference in a new issue