Code

fix crash when pressing space while drawing a shape