calculator icon indicating copy to clipboard operation
calculator copied to clipboard

[English version] Backspace key does not delete mistyped operator(s)

Open onu032001 opened this issue 5 months ago • 1 comments

Describe the bug

If I typed a number like $345$ and mistype / instead of *, and try to delete mistyped operator '$\div$', It will not delete.

Steps To Reproduce

  1. Type a number like $345$.
  2. Type /
  3. If you press Backspace, it will not delete the operator '$\div$' AT ALL!

Expected behavior

Deletes the mistyped operator.

Screenshots

No screenshots available.

Device and Application Information

  • OS Build: 10.0.26100.0
  • Architecture: X64
  • Application Version: 11.2502.2.0
  • Region: ko-KR
  • Dev Version Installed: False

Additional context

Please fix this bug. I made this issue for you to understand #2356 .

Requested Assignment

I'm just reporting this problem. I don't want to fix it.

onu032001 avatar Jul 26 '25 03:07 onu032001

Thanks for reporting!

I reproduced the issue and it appears the Backspace command doesn't update the expression parser when the last input is an operator.

Possible cause: IsLastKeyOperator() returns false because operators like / are immediately converted to ÷ and placed outside the editable buffer.

Expected behavior:

  • Backspace should remove the operator and revert calculator to numeric input state.

Suggested fix direction:

  • Update expression handling so the operator symbol is registered in the input stack.
  • Ensure Backspace action triggers RemoveLastToken() even when the last token type is Operator.

I'd be happy to explore a fix if allowed. Please assign.

Amitjoiya avatar Nov 28 '25 05:11 Amitjoiya