code: def eventFilter( self, object, event ):
          
          if ( event.type() == event.KeyPress ):
              if ( event.key() in (Qt.Key_Return, Qt.Key_Enter) ):
                  self.addQuery()
                  return True
          
          return False
docs: Filters the object for particular events.
          
          :param      object | <QObject>
                      event  | <QEvent>
          
          :return     <bool> | consumed