File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ const ShapeBuilder = () => {
7979 poly . draw ( "param" , "snapToGrid" , 0.001 ) ;
8080 }
8181
82- if ( e . key === "Enter" ) {
82+ if ( e . key === "Enter" || e . key === "Escape" ) {
8383 poly . draw ( "done" ) ;
8484 poly . fill ( "#00B39F" ) ;
8585 showCytoArray ( ) ;
@@ -172,7 +172,12 @@ const ShapeBuilder = () => {
172172 return (
173173 < Wrapper >
174174 < CanvasContainer >
175- < StyledSVG ref = { boardRef } width = "100%" height = "100%" >
175+ < StyledSVG
176+ ref = { boardRef }
177+ width = "100%"
178+ height = "100%"
179+ onDoubleClick = { closeShape }
180+ >
176181 < defs >
177182 < pattern id = "grid" width = "16" height = "16" patternUnits = "userSpaceOnUse" >
178183 < path d = "M 16 0 L 0 0 0 16" fill = "none" stroke = "#797d7a" strokeWidth = "1" />
Original file line number Diff line number Diff line change @@ -119,4 +119,4 @@ const IndexPage = () => {
119119
120120export default IndexPage ;
121121
122- export const Head = ( ) => < title > Meshery – Shape Builder</ title > ;
122+ export const Head = ( ) => < title > Meshery – Shape Builder</ title > ;
You can’t perform that action at this time.
0 commit comments