Page 1 of 1

[2.1.7] Changing existing constant appends to end of string instead of replacing it

Posted: Wed Jun 24, 2026 1:00 am
by qenta22
I know this is a nit, but I wanted to report a change in functionality.

> What did you do?
I clicked on the constant number in this "Enable if":
Screenshot 2026-06-23 at 5.44.57 PM.png
Screenshot 2026-06-23 at 5.44.57 PM.png (334.14 KiB) Viewed 871 times
As expected, I was taken to the screen to set the constant. The constant string ("50") is highlighted, again, as expected.
Screenshot 2026-06-23 at 5.45.47 PM.png
Screenshot 2026-06-23 at 5.45.47 PM.png (594.94 KiB) Viewed 871 times
I then typed "90".
> What happened?
The constant was then set to "5090".
Screenshot 2026-06-23 at 5.52.07 PM.png
Screenshot 2026-06-23 at 5.52.07 PM.png (835.1 KiB) Viewed 871 times
> What did you expect to happen instead? It might be obvious to you, but do it anyway!
I expected the keystrokes to replace the "50", but the "90" was simply appended to the end.
>Does it happen always, once, or sometimes?
This happens always. It is changed functionality from the previous version and requires extra mouse movement or keystrokes to fix.
factorio-current.log
(11.36 KiB) Downloaded 26 times
Save file is too big, can recreate in new world upon request.

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Posted: Wed Jun 24, 2026 1:11 am
by Rseding91
I am not able to reproduce any such issue. When I type - it overwrites the selected text.

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Posted: Wed Jun 24, 2026 5:56 pm
by Bilka
Are you using the numpad to type the numbers?

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Posted: Thu Jun 25, 2026 12:25 am
by qenta22
Hi Bilka,

Yes. I was using numpad on an external Bluetooth keyboard for my laptop. I just tried numbers on the laptop keyboard (not a numpad, nothing externally connected) and the intended behavior occurred, where it overwrote the existing values.

I have used the numpad without this issue on previous builds.

Andrew

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Posted: Thu Jun 25, 2026 6:46 am
by Rseding91
Strange. Can you test disabling the setting mentioned here? viewtopic.php?p=695689#p695689

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Posted: Thu Jun 25, 2026 4:32 pm
by qenta22
Hi Team,

Toggling num-lock on my keyboard resolved the issue.

The config change to which you linked also resolved the issue, for both toggle states of num-lock.

That is sufficient for me, if it resolves your potential concerns as well.

Andrew

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Posted: Tue Jun 30, 2026 8:13 am
by Kiklov
I have the same issue, I'm on a MacBook with OSX Tahoe 25.6.1 and using an external Apple keyboard with numpad. Using the numpad it appends the string.

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Posted: Tue Jun 30, 2026 9:41 am
by Rseding91
This sounds like an SDL3 bug. I’ll see if we can reproduce it internally.

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Posted: Wed Jul 15, 2026 3:13 pm
by Rseding91
I was finally able to reproduce this with a coworkers help and it's now fixed for the next release.