You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Several signs, including very common ones like : and x, are not accepted when being pasted into Calculator, which claims "Invalid input" every time. Additionally, •, ÷, and × results in "Invalid input" too, somewhat ironic considering the latter two are used for the buttons within the app.
Steps To Reproduce
Open up Windows Calculator (Close and re-open it if needed), so that the log is empty. Switch between the Standard and Scientific modes between each of the below steps to empty the input box properly.
Paste 80:40 into Calculator and see that the input box shows "Invalid Data".
Paste 80•40 into Calculator and see that the input box shows "Invalid Data".
Paste 80÷40 into Calculator and see that the input box shows "Invalid Data".
Paste 80x40 into Calculator and see that the input box shows "Invalid Data".
Paste 80×40 into Calculator and see that the input box shows "Invalid Data".
Expected behavior
All such aliases, and plausibly additional ones too, are accepted when pasting into Calculator.
Screenshots
I don't think still-images would help showcase this, unfortunately.
Describe the bug
Several signs, including very common ones like
:
andx
, are not accepted when being pasted into Calculator, which claims "Invalid input" every time. Additionally,•
,÷
, and×
results in "Invalid input" too, somewhat ironic considering the latter two are used for the buttons within the app.Steps To Reproduce
80:40
into Calculator and see that the input box shows "Invalid Data".80•40
into Calculator and see that the input box shows "Invalid Data".80÷40
into Calculator and see that the input box shows "Invalid Data".80x40
into Calculator and see that the input box shows "Invalid Data".80×40
into Calculator and see that the input box shows "Invalid Data".Expected behavior
All such aliases, and plausibly additional ones too, are accepted when pasting into Calculator.
Screenshots
I don't think still-images would help showcase this, unfortunately.
Device and Application Information
Additional context
I narrowed the "Invalid data" problem to
static const wstring c_validBasicCharacterSet = L"0123456789+-.e";
in https://github.com/microsoft/calculator/blob/main/src/CalcViewModel/Common/CopyPasteManager.cpp , and am presuming that it'd be easy to change the values toL"0123456789+-.e:÷•x×"
Creating and binding additional aliases proved difficult despite me trying my hardest to search through the source code. Closest guess I could come up with, was to change a section of https://github.com/microsoft/calculator/blob/main/src/Calculator/Views/GraphingCalculator/GraphingNumPad.xaml.cs from:
To:
Requested Assignment
If possible, I would like to fix this.
The text was updated successfully, but these errors were encountered: