(self, event)
onkeydown
onkeydown
onkeydown
def keyPressEvent(self, event):
        """ onkeydown
        """
        key = event.key()
        mod = event.modifiers()
        if key == Qt.Key_F and mod & Qt.ControlModifier and self.search_enabled:  # CTRL + F
            self._on_cm_search()
        else:
            super(DwarfListView, self).keyPressEvent(event)
def keyPressEvent ( self , event ) : key = event . key ( ) mod = event . modifiers ( ) if key == Qt . Key_F and mod & Qt . ControlModifier and self . search_enabled : # CTRL + F self . _on_cm_search ( ) else : super ( DwarfListView , self ) . keyPressEvent ( event )