calculator
calculator copied to clipboard
Typing the most negative number by numpad not possible
Hello, steps to reproduce:
- Switch to programmers mode (Alt+3)
- Switch number size to BYTE
- Now it is not possible to just simply enter a value -128 by numeric keyboard.
I am programmer and I found out reasons why it is not possible. You binded a minus input with an operation minus and then expecting a positive value which +128 is not valid. But your focus should be to user experience and I as a user started typing negative value -128. And it really should be possible to just enter a simple number like -128 which is in hexa 0x80 fully valid number.
This is your friendly Microsoft Issue Bot. I've seen this issue come in and have gone to tell a human about it.
Thanks for the bug report! Agree with you here, and similar to #1311, this feels like a case where we should be smarter about the - key when it is the first button pressed. This is also not limited to Programmer mode, but for all "first" inputs across standard, scientific, and programmer modes.
Can I take on this issue( If it is not too difficult for a newbie)? As I'm quite new to this so I might also need some guidance on where should I start.
Can I take on this issue( If it is not too difficult for a newbie)? As I'm quite new to this so I might also need some guidance on where should I start.
Of course! We'd really appreciate any effort on the Calculator project! ❤
Hi @hanzhang54, I successfully recreated this issue. After reading issue #1311, I found a workaround. If we use the "+/-" key instead of the "-" key we can write -128. I thought of a solution for this particular issue, that will not solve the other issue but will improve UX. When we type "-" in an empty input box then it will be considered as "+/-" instead of the "-" or subtraction sign. Implementing this might be a bit difficult while making sure no other feature breaks. But I think I can do this if you allow me to. Also Can you please tell me the files that belong to this problem? That will be of great help.
@sourabh112 Are you still working on this issue? Otherwise, I'd like to try it out, I'm new to open source as well
@GauravB159 No, you can go ahead and work on it.