This commit is contained in:
Kovid Goyal 2012-07-16 20:19:43 +05:30
parent bbc5811735
commit e6a4163623

View File

@ -189,12 +189,11 @@ class Completer(QListView): # {{{
e.accept() e.accept()
return True return True
return False return False
if key in (Qt.Key_End, Qt.Key_Home, Qt.Key_Up, Qt.Key_Down, if key in (Qt.Key_PageUp, Qt.Key_PageDown):
Qt.Key_PageUp, Qt.Key_PageDown):
# Let the list view handle these keys # Let the list view handle these keys
return False return False
if key in (Qt.Key_Tab, Qt.Key_Backtab): if key in (Qt.Key_Tab, Qt.Key_Backtab, Qt.Key_Up, Qt.Key_Down):
self.next_match(previous=key == Qt.Key_Backtab) self.next_match(previous=key in (Qt.Key_Backtab, Qt.Key_Up))
e.accept() e.accept()
return True return True
# Send to widget # Send to widget