Viewer: Fix search shortcut button not focusing search input if the search panel is placed in a tab or a floating window

This commit is contained in:
Kovid Goyal 2020-02-06 08:25:28 +05:30
parent cf65226e6b
commit 357762c70a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -250,6 +250,8 @@ class EbookViewer(MainWindow):
def show_search(self): def show_search(self):
self.search_dock.setVisible(True) self.search_dock.setVisible(True)
self.search_dock.activateWindow()
self.search_dock.raise_()
self.search_widget.focus_input() self.search_widget.focus_input()
def start_search(self, search_query): def start_search(self, search_query):