mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:34:27 +02:00
Fix #7425 (Search as you type launches unnecessarily and loses caret position)
This commit is contained in:
parent
0c0e167f39
commit
691984afd8
1 changed files with 5 additions and 2 deletions
|
|
@ -163,8 +163,11 @@ def key_pressed(self, event):
|
|||
|
||||
def mouse_released(self, event):
|
||||
self.normalize_state()
|
||||
if self.as_you_type:
|
||||
self.timer.start(1500)
|
||||
# Dont trigger a search since it make
|
||||
# re-positioning the cursor using the mouse
|
||||
# impossible
|
||||
#if self.as_you_type:
|
||||
# self.timer.start(1500)
|
||||
|
||||
def timer_event(self):
|
||||
self.do_search()
|
||||
|
|
|
|||
Loading…
Reference in a new issue