code: def keyPressEvent(self, event):
          
          if event.key() in (Qt.Key_Enter, Qt.Key_Return):
              self.queryEntered.emit(self.query())
          
          super(XOrbQuickFilterWidget, self).keyPressEvent(event)
docs: Listens for the enter event to check if the query is setup.