mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Search box: Only trigger as you type timer if text content has changed
This commit is contained in:
parent
3fcebe8383
commit
243fcf5b38
@ -140,7 +140,7 @@ class SearchBox2(QComboBox):
|
||||
if event.key() in (Qt.Key_Return, Qt.Key_Enter):
|
||||
self.do_search()
|
||||
self.focus_to_library.emit()
|
||||
if self.as_you_type:
|
||||
elif self.as_you_type and unicode(event.text()):
|
||||
self.timer.start(1500)
|
||||
|
||||
def timer_event(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user