Skip to content

Commit 7847be2

Browse files
authored
Merge pull request #38 from M-DEV-1/M-DEV-1/fix-shape-close
Fix: use ENTER to close a shape
2 parents 1b0840f + 157ef83 commit 7847be2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/src/components/ShapeBuilder/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const ShapeBuilder = () => {
6666
poly.draw("param", "snapToGrid", 0.001);
6767
}
6868

69-
if (e.ctrlKey && e.key === "Enter") {
69+
if (e.key === "Enter") {
7070
poly.draw("done");
7171
poly.fill("#00B39F");
7272
showCytoArray();

site/src/components/utils/instructionsModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Modal, ModalBody, Typography, List, ListItem, ListItemText, ModalFooter
33

44
const instructionPoints = [
55
{
6-
primary: "Press CTRL + Enter to close the shape",
6+
primary: "Press ENTER to close the shape",
77
secondary: "It won’t draw the last position of your cursor, don’t stress!"
88
},
99
{

0 commit comments

Comments
 (0)