From 0c0e167f39f4cab64ff3a4248021e50d7f1a5471 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 5 Nov 2010 13:44:33 -0600 Subject: [PATCH] ... --- src/calibre/gui2/search_box.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/gui2/search_box.py b/src/calibre/gui2/search_box.py index 6e510cbfa5..8c8b444ebf 100644 --- a/src/calibre/gui2/search_box.py +++ b/src/calibre/gui2/search_box.py @@ -148,6 +148,10 @@ class SearchBox2(QComboBox): self.line_edit.setStyleSheet('QLineEdit { color: black; background-color: %s; }' % col) def key_pressed(self, event): + k = event.key() + if k in (Qt.Key_Left, Qt.Key_Right, Qt.Key_Up, Qt.Key_Down, + Qt.Key_Home, Qt.Key_End, Qt.Key_PageUp, Qt.Key_PageDown): + return self.normalize_state() if self._in_a_search: self.emit(SIGNAL('changed()'))