mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 03:45:19 +01:00
Restore focus after closing highlight editor
This commit is contained in:
parent
081c14c18a
commit
ef35803ddb
1 changed files with 2 additions and 0 deletions
|
|
@ -670,6 +670,7 @@ def hide_editor(self, apply_changes):
|
|||
if not apply_changes:
|
||||
self.state = WAITING
|
||||
self.update_position()
|
||||
self.container.focus()
|
||||
return
|
||||
ed = self.current_editor
|
||||
self.current_editor = None
|
||||
|
|
@ -681,6 +682,7 @@ def hide_editor(self, apply_changes):
|
|||
self.state = WAITING
|
||||
self.update_position()
|
||||
get_session_data().set('highlight_style', self.current_highlight_style.style)
|
||||
self.container.focus()
|
||||
|
||||
def editor_container_clicked(self, ev):
|
||||
ev.stopPropagation(), ev.preventDefault()
|
||||
|
|
|
|||
Loading…
Reference in a new issue