mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
87ca655075
commit
c99f18eb62
@ -769,9 +769,11 @@ class IframeBoss:
|
|||||||
if crw_:
|
if crw_:
|
||||||
unwrap_crw(crw_)
|
unwrap_crw(crw_)
|
||||||
v'delete annot_id_uuid_map[crw_]'
|
v'delete annot_id_uuid_map[crw_]'
|
||||||
# have to remove selection otherwise it remains as the empty
|
sel = window.getSelection()
|
||||||
# string, and the selection bar does not hide itself
|
if not sel.toString():
|
||||||
window.getSelection().removeAllRanges()
|
# have to remove selection otherwise it remains as the empty
|
||||||
|
# string, and the selection bar does not hide itself
|
||||||
|
sel.removeAllRanges()
|
||||||
elif data.type is 'apply-highlight':
|
elif data.type is 'apply-highlight':
|
||||||
sel = window.getSelection()
|
sel = window.getSelection()
|
||||||
text = sel.toString()
|
text = sel.toString()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user