Merge pull request #9 from divyeshbirawat/main

This commit is contained in:
Prozilla 2024-07-14 13:24:28 +02:00 committed by GitHub
commit 4600a39f78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,6 +137,11 @@ export function Calculator({ active }: WindowProps) {
case "%":
addInput("%");
break;
case "Backspace":
if (input != null && input.length > 0) {
setInput(input.slice(0, -1));
}
break;
}
};