mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix #2107210 [Ebook-editor: Enter doesn't work in Text search pane](https://bugs.launchpad.net/calibre/+bug/2107210)
This commit is contained in:
parent
6f63366c14
commit
bbe90eac79
@ -100,6 +100,7 @@ class TextSearch(QWidget):
|
||||
ft.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed)
|
||||
ft.initialize('tweak_book_text_search_history')
|
||||
la.setBuddy(ft)
|
||||
ft.textActivated.connect(self.search_activated)
|
||||
self.h = h = QHBoxLayout()
|
||||
h.addWidget(la), h.addWidget(ft), l.addLayout(h)
|
||||
|
||||
@ -150,6 +151,9 @@ class TextSearch(QWidget):
|
||||
state['find'] = self.find.text()
|
||||
state['direction'] = direction
|
||||
self.find_text.emit(state)
|
||||
|
||||
def search_activated(self):
|
||||
self.do_search()
|
||||
# }}}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user