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;
|
||||
case '.':
|
||||
Bangle.buzz(30);
|
||||
if (currNumber != null && currNumber.toString().indexOf('.') !== -1) {
|
||||
break;
|
||||
}
|
||||
specials.R.val = 'C';
|
||||
if (!swipeEnabled) drawKey('R', specials.R);
|
||||
isDecimal = true;
|
||||
|
||||
Reference in New Issue
Block a user