[2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming
[2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming
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
Re: [2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming
That is because the constant input now accepts mathematical expressions, including the scientific notation, e.g. 1e3 is the same as writing 1000.
Re: [2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming
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.
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.
My mods: Multiple Unit Train Control, Smart Artillery Wagons
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk
Re: [2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming
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?
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?
Re: [2.0.8] E to confirm in number input of signal inserts letter 'e' instead of confirming
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