mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Restore focus after closing highlight editor
This commit is contained in:
parent
081c14c18a
commit
ef35803ddb
@ -670,6 +670,7 @@ class SelectionBar:
|
|||||||
if not apply_changes:
|
if not apply_changes:
|
||||||
self.state = WAITING
|
self.state = WAITING
|
||||||
self.update_position()
|
self.update_position()
|
||||||
|
self.container.focus()
|
||||||
return
|
return
|
||||||
ed = self.current_editor
|
ed = self.current_editor
|
||||||
self.current_editor = None
|
self.current_editor = None
|
||||||
@ -681,6 +682,7 @@ class SelectionBar:
|
|||||||
self.state = WAITING
|
self.state = WAITING
|
||||||
self.update_position()
|
self.update_position()
|
||||||
get_session_data().set('highlight_style', self.current_highlight_style.style)
|
get_session_data().set('highlight_style', self.current_highlight_style.style)
|
||||||
|
self.container.focus()
|
||||||
|
|
||||||
def editor_container_clicked(self, ev):
|
def editor_container_clicked(self, ev):
|
||||||
ev.stopPropagation(), ev.preventDefault()
|
ev.stopPropagation(), ev.preventDefault()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user