Merge pull request #9 from divyeshbirawat/main
This commit is contained in:
commit
4600a39f78
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue