browser: allow cursor jump if text selection is empty

Otherwise, if the user selects all the document,
the clipboard blocks Page Up or Page Down cursor jumps.

Change-Id: Ia9c432646c51063775bb7cca6a998e7d1cdcdbf2
Signed-off-by: Henry Castro <hcastro@collabora.com>
private/Andreas-Kainz/Formulabar
Henry Castro 2022-01-28 09:01:10 -04:00 committed by Gökay ŞATIR
parent dd3134d554
commit df96b97f88
1 changed files with 2 additions and 0 deletions

View File

@ -2854,6 +2854,8 @@ L.CanvasTileLayer = L.Layer.extend({
else {
this._textCSelections.clear();
this._cellCSelections.clear();
if (this._map._clip && this._map._clip._selectionType === 'complex')
this._map._clip.clearSelection();
}
this._onUpdateTextSelection();