Skip to content

Commit 2a38f69

Browse files
Merge branch 'master' into feat/73-better-instructions
Signed-off-by: PARTHIV PRATIM SAIKIA <142080852+parthivsaikia@users.noreply.github.com>
2 parents 47b6bfd + 86e49f1 commit 2a38f69

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

site/src/components/ShapeBuilder/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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" />

site/src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ const IndexPage = () => {
119119

120120
export default IndexPage;
121121

122-
export const Head = () => <title>Meshery – Shape Builder</title>;
122+
export const Head = () => <title>Meshery – Shape Builder</title>;

0 commit comments

Comments
 (0)