Page 1 of 1

Non-digit characters (especially 'e') in number fields

Posted: Fri Oct 25, 2024 11:12 pm
by imi___
In 1.1, you could not enter non-digit characters into number fields like the "constant" text field in combinators.

Now, it will happily write characters (although the resulting text+digit mashup is not valid). That is especially annoying for the character "e" which usually accepts the dialog.

At least don't accept the character "e", please.
10-26-2024, 01-12-09.png
10-26-2024, 01-12-09.png (19.28 KiB) Viewed 285 times

Re: Non-digit characters (especially 'e') in number fields

Posted: Fri Oct 25, 2024 11:18 pm
by chim
If any letter should be accepted it would be `e` though, supporting scientific shorthand like 1e3 for 1000 would be awesome

Re: Non-digit characters (especially 'e') in number fields

Posted: Fri Oct 25, 2024 11:33 pm
by Xorimuth
chim wrote:
Fri Oct 25, 2024 11:18 pm
If any letter should be accepted it would be `e` though, supporting scientific shorthand like 1e3 for 1000 would be awesome
That’s exactly what it is doing. It doesn’t support most letters, but it will do maths expressions like 5*15 or scientific notation like 3e7. Still though… I’d much rather be able to press E to confirm than use scientific notation.

Re: Non-digit characters (especially 'e') in number fields

Posted: Fri Oct 25, 2024 11:36 pm
by imi___
Actually, when I typed my first "e" to close the dialog and it inserted an "e" instead, I thought something like: "Oh boy... why did they add scientific notation? Now I have to rebind my 'accept key'."

But then it turned out, that it isn't even working.

I would still prefer to not have scientific notation and close the field instead.

Also note, that this character keys is likely a new feature as now you can type "1m" for one million. Still, please either only accept the keys intended to work (like M) or no non-digit keys at all (which I would prefer).

Maybe an config option to let the user choose the behaviour?

Re: Non-digit characters (especially 'e') in number fields

Posted: Fri Oct 25, 2024 11:37 pm
by imi___
Xorimuth wrote:
Fri Oct 25, 2024 11:33 pm
chim wrote:
Fri Oct 25, 2024 11:18 pm
If any letter should be accepted it would be `e` though, supporting scientific shorthand like 1e3 for 1000 would be awesome
That’s exactly what it is doing. It doesn’t support most letters, but it will do maths expressions like 5*15 or scientific notation like 3e7. Still though… I’d much rather be able to press E to confirm than use scientific notation.
Oh, you are right. It DOES work. hm..

Still, I call it an "anti feature". :/

Re: Non-digit characters (especially 'e') in number fields

Posted: Fri Oct 25, 2024 11:42 pm
by chim
Xorimuth wrote:
Fri Oct 25, 2024 11:33 pm
chim wrote:
Fri Oct 25, 2024 11:18 pm
If any letter should be accepted it would be `e` though, supporting scientific shorthand like 1e3 for 1000 would be awesome
That’s exactly what it is doing. It doesn’t support most letters, but it will do maths expressions like 5*15 or scientific notation like 3e7. Still though… I’d much rather be able to press E to confirm than use scientific notation.
Didn't even realize scientific was already a thing, the input field still lets you write other letters though, that's probably the issue to fix. The question of allows E is another discussion.
10-26-2024, 01-42-54.png
10-26-2024, 01-42-54.png (127.4 KiB) Viewed 260 times

Re: Non-digit characters (especially 'e') in number fields

Posted: Sat Oct 26, 2024 8:30 am
by Genhis
Thanks for the report, this is a duplicate of 116339.

Re: Non-digit characters (especially 'e') in number fields

Posted: Thu Oct 31, 2024 2:46 pm
by imi___
So.. since this is now linked to a locked thread in "not a bug" section (where the actual bug report is about the a wrong tooltip instead), this is now the final answer of the devs? That it stays broken and just declared a feature?

Another case where the devs made things worse and then just lock forum posts complaining... I wished we had the old input field back and not this ""smart"" one.. ;-(

Re: Non-digit characters (especially 'e') in number fields

Posted: Thu Oct 31, 2024 3:41 pm
by Genhis
imi___ wrote:
Thu Oct 31, 2024 2:46 pm
So.. since this is now linked to a locked thread in "not a bug" section (where the actual bug report is about the a wrong tooltip instead), this is now the final answer of the devs? That it stays broken and just declared a feature?
Ideas and Suggestions is the best place where you can voice your opinion. We do listen to player feedback, it's just that this change was intentional and further discussion doesn't belong to bug reports. Ref. viewtopic.php?p=629126#p629126