original_docstring: Pressing ESC resets the canvas. Pressing enter connects the polygon
docstring: Pressing ESC resets the canvas. Pressing enter connects the polygon
docstring_tokens: Pressing ESC resets the canvas . Pressing enter connects the polygon
code: def keyPressEvent(self, e):
          """Pressing ESC resets the canvas. Pressing enter connects the polygon"""
          if (e.key() == 16777216):
              self.reset()
          if (e.key() == 16777220):
              self.finishPolygon()
code_tokens: def keyPressEvent ( self , e ) : if ( e . key ( ) == 16777216 ) : self . reset ( ) if ( e . key ( ) == 16777220 ) : self . finishPolygon ( )
short_docstring: Pressing ESC resets the canvas.
short_docstring_tokens: Pressing ESC resets the canvas .
comment: """Pressing ESC resets the canvas. Pressing enter connects the polygon"""