Fix #1756712 [Enhancement: Ctrl+F when reading ebook - select previously searched text](https://bugs.launchpad.net/calibre/+bug/1756712)

This commit is contained in:
Kovid Goyal 2018-03-18 22:55:09 +05:30
parent 5c6e98a7e8
commit 9af465ae7e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1127,6 +1127,7 @@ class EbookViewer(MainWindow):
if not self.tool_bar.isVisible():
self.toggle_toolbars()
self.search.setFocus(Qt.OtherFocusReason)
self.search.lineEdit().selectAll()
return
if not self.view.handle_key_press(event):
event.ignore()