(self, keyEvent)
return self._start is not None and \
               (keyEvent.matches(QKeySequence.Delete) or \
                (keyEvent.key() == Qt.Key_Backspace and keyEvent.modifiers() == Qt.NoModifier))
Check if key event should be handled as Delete command
Check if key event should be handled as Delete command
Check if key event should be handled as Delete command
def isDeleteKeyEvent(self, keyEvent):
        """Check if key event should be handled as Delete command"""
        return self._start is not None and \
               (keyEvent.matches(QKeySequence.Delete) or \
                (keyEvent.key() == Qt.Key_Backspace and keyEvent.modifiers() == Qt.NoModifier))
def isDeleteKeyEvent ( self , keyEvent ) : return self . _start is not None and ( keyEvent . matches ( QKeySequence . Delete ) or ( keyEvent . key ( ) == Qt . Key_Backspace and keyEvent . modifiers ( ) == Qt . NoModifier ) )