linux: Fix enter key triggering newline instead of commiting input (#39599)

Closes #31337 #35537

Release Notes:

- Fixed an issue on Linux X11 where pressing Enter added a new line
instead of confirming English input.
2c1cc01b81Smit Barmase committed on 10/6/2025, 12:52:02 PM· committed by GitHubparent81ada92
1 file changedLine totals unavailable