#NEWLINE# def keyReleaseEvent( self , event ) : #NEWLINE# #INDENT# '\n        Overrides keyReleaseEvent to emit the key_released signal.\n\n        :param event: QKeyEvent\n        ' #NEWLINE# if self . isReadOnly ( ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# initial_state = event . isAccepted ( ) #NEWLINE# event . ignore ( ) #NEWLINE# self . key_released . emit ( event ) #NEWLINE# if ( not event . isAccepted ( ) ) : #NEWLINE# #INDENT# event . setAccepted ( initial_state ) #NEWLINE# super ( CodeEdit , self ) . keyReleaseEvent ( event )