mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -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:
|
||||
self.state = WAITING
|
||||
self.update_position()
|
||||
self.container.focus()
|
||||
return
|
||||
ed = self.current_editor
|
||||
self.current_editor = None
|
||||
@ -681,6 +682,7 @@ class SelectionBar:
|
||||
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…
x
Reference in New Issue
Block a user