calculator icon indicating copy to clipboard operation
calculator copied to clipboard

Typing the most negative number by numpad not possible

Open kezyr opened this issue 4 years ago • 5 comments
trafficstars

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.

kezyr avatar May 12 '21 11:05 kezyr

This is your friendly Microsoft Issue Bot. I've seen this issue come in and have gone to tell a human about it.

MicrosoftIssueBot avatar May 12 '21 12:05 MicrosoftIssueBot

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.

grochocki avatar May 25 '21 08:05 grochocki

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.

sourabh112 avatar Aug 21 '21 12:08 sourabh112

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! ❤

hanzhang54 avatar Aug 23 '21 06:08 hanzhang54

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 avatar Aug 23 '21 07:08 sourabh112

@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 avatar Nov 08 '22 03:11 GauravB159

@GauravB159 No, you can go ahead and work on it.

sourabh112 avatar Nov 08 '22 14:11 sourabh112