mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
commit
6a842ce452
@ -823,6 +823,8 @@ class OnDeviceSearch(SearchQueryParser): # {{{
|
||||
if accessor(row) is None:
|
||||
matches.add(index)
|
||||
continue
|
||||
if locvalue == 'inlibrary':
|
||||
continue # this is bool, so can't match below
|
||||
try:
|
||||
### Can't separate authors because comma is used for name sep and author sep
|
||||
### Exact match might not get what you want. For that reason, turn author
|
||||
|
@ -139,10 +139,8 @@ class SearchBox2(QComboBox):
|
||||
|
||||
def key_pressed(self, event):
|
||||
self.normalize_state()
|
||||
if not self.as_you_type:
|
||||
if event.key() in (Qt.Key_Return, Qt.Key_Enter):
|
||||
self.do_search()
|
||||
else:
|
||||
self.timer = self.startTimer(self.__class__.INTERVAL)
|
||||
|
||||
def mouse_released(self, event):
|
||||
|
Loading…
x
Reference in New Issue
Block a user