fix: Prevent multiple decimal points in number input

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-03-14 18:22:39 -06:00
committed by Tanner
parent 8ed03143bd
commit 7a3e5cd868
+3
View File
@@ -586,6 +586,9 @@ function buttonPress(val) {
break; break;
case '.': case '.':
Bangle.buzz(30); Bangle.buzz(30);
if (currNumber != null && currNumber.toString().indexOf('.') !== -1) {
break;
}
specials.R.val = 'C'; specials.R.val = 'C';
if (!swipeEnabled) drawKey('R', specials.R); if (!swipeEnabled) drawKey('R', specials.R);
isDecimal = true; isDecimal = true;