#NEWLINE# def keyPressEvent( self , e ) : #NEWLINE# #INDENT# if ( e . key ( ) in ( QtCore . Qt . Key_Return , QtCore . Qt . Key_Enter ) ) : #NEWLINE# #INDENT# if self . currentText ( ) : #NEWLINE# #INDENT# if ( not self . is_incremental ) : #NEWLINE# #INDENT# self . emit ( QtCore . SIGNAL ( 'executeSearch(QString)' ) , self . currentText ( ) ) #NEWLINE# #UNINDENT# self . insertItem ( 0 , self . currentText ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . emit ( QtCore . SIGNAL ( 'resetText()' ) ) #NEWLINE# #UNINDENT# return #NEWLINE# #UNINDENT# QtGui . QComboBox . keyPressEvent ( self , e )