[2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming

Things that has been reported already before.
Tooster
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Wed Mar 24, 2021 6:42 pm
Contact:

[2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming

Post by Tooster »

The "E" to confirm number input in a GUI (for example when trying to input a constant for a signal in inserter) doesn't work anymore when the number input is focused. It inputs the 'e' letter instead. I am not sure if that was the case before 2.0 (inputs restricted characters to digits only?). Anyway, this is a bit confusing given how it is present in the tooltip of the "Set constant" button.
Look mom, I made a mod ^^ Barrel Stages

User avatar
LCStark
Long Handed Inserter
Long Handed Inserter
Posts: 91
Joined: Thu Jan 28, 2021 5:04 pm
Contact:

Re: [2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming

Post by LCStark »

That is because the constant input now accepts mathematical expressions, including the scientific notation, e.g. 1e3 is the same as writing 1000.

robot256
Filter Inserter
Filter Inserter
Posts: 833
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming

Post by robot256 »

More importantly it accepts variable names like "weight". I'm still not clear how to use them.

Does pressing escape unfocus the text box, or close the whole window? We should ask for at least some key combination to let us confirm the dialog without clicking.

User avatar
LCStark
Long Handed Inserter
Long Handed Inserter
Posts: 91
Joined: Thu Jan 28, 2021 5:04 pm
Contact:

Re: [2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming

Post by LCStark »

Oh, variables, interesting!

Pressing Esc closes the input window without saving the constant value. Shift + E inputs capital E, so maybe Ctrl + E would work as a default to save&close?

Tooster
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Wed Mar 24, 2021 6:42 pm
Contact:

Re: [2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming

Post by Tooster »

yes, e accepts input for scientific notation, it was in some FFF iirc. Tehre are also SI suffixes like k, m and the rest I don't remember. I don't remember which FFF it was mentioned in, and the variables are news to me, would be nice to have some documented info about it. For anyone interested, Enter can be used to quickly accept the value instead of E, so I guess E became redundant (unless the text input is unfocused, in that case E confirms and Enter doesn't). I think it would be appropriate to migrate from E to enter in this case.
Look mom, I made a mod ^^ Barrel Stages


Locked

Return to “Duplicates”