mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 10:33:04 +02:00
E-book viewer: Fix right or shift-clicking to extend selection not shrinking selection when the click is inside the selection. Fixes #1926793 [E-book viewer: right-clicking inside the selection does nothing](https://bugs.launchpad.net/calibre/+bug/1926793)
This commit is contained in:
parent
333f42945a
commit
1095dc4dc6
1 changed files with 2 additions and 1 deletions
|
|
@ -206,7 +206,8 @@ def move_end_of_selection(pos, start):
|
|||
elif r.compareBoundaryPoints(window.Range.END_TO_END, q) <= 0:
|
||||
start = False
|
||||
else:
|
||||
return
|
||||
# point is inside the selection
|
||||
start = False
|
||||
if start:
|
||||
if r.startContainer is not p.offsetNode or r.startOffset is not p.offset:
|
||||
r.setStart(p.offsetNode, p.offset)
|
||||
|
|
|
|||
Loading…
Reference in a new issue