|
@@ -18,7 +18,7 @@ function Addition() {
|
|
|
const [resultsGrid, setResultsGrid] = useState([{id: 1, number: ""}]); // calculated result
|
|
|
const [stepsGrid, setStepsGrid] = useState([{id: 1, step: ""}]); // one step for every digit
|
|
|
|
|
|
- const [autoMoveComma, setAutoMoveComma] = useState(true); // move the comma automatically
|
|
|
+ const [autoMoveComma, setAutoMoveComma] = useState(false); // move the comma automatically
|
|
|
const [allowStartOver, setAllowStartOver] = useState(true); // show steps and allow restart
|
|
|
|
|
|
// focus the input field
|
|
@@ -139,6 +139,9 @@ function Addition() {
|
|
|
}else if(pressedKey === 40){ // down
|
|
|
let nextFocusId = Math.min(noId+1, numbers.length-1);
|
|
|
document.getElementById("numbersTd" + nextFocusId).focus();
|
|
|
+
|
|
|
+ }else if(pressedKey === 13){ // enter
|
|
|
+ submitCommaMove();
|
|
|
}
|
|
|
};
|
|
|
|