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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user