#NEWLINE# def keyPressEvent( self , event ) : #NEWLINE# #INDENT# 'Hold down modifier keys to temporarily set edit mode' #NEWLINE# mod = event . modifiers ( ) #NEWLINE# if ( event == Qt . ShiftModifier ) : #NEWLINE# #INDENT# self . _mode_toolbar . set_mode ( 'or' )