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()'))