mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2049928 [go to location shortcut doesn't change cursor focus properly](https://bugs.launchpad.net/calibre/+bug/2049928)
This commit is contained in:
parent
59cff497da
commit
32baf23f21
@ -150,4 +150,8 @@ def create_location_overlay(current_position_data, book, overlay, container):
|
|||||||
display_and_copy(_('URL for this position:'), calibre_book_url)
|
display_and_copy(_('URL for this position:'), calibre_book_url)
|
||||||
elif not runtime.is_standalone_viewer:
|
elif not runtime.is_standalone_viewer:
|
||||||
display_and_copy(_('URL for this position:'), window.top.location.toString())
|
display_and_copy(_('URL for this position:'), window.top.location.toString())
|
||||||
container.querySelector('[name=newpos]').focus()
|
window.setTimeout(def():
|
||||||
|
container = document.getElementById(container_id)
|
||||||
|
if container:
|
||||||
|
container.querySelector('[name=newpos]').focus()
|
||||||
|
, 10)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user