Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineEdit loses text input focus after input has been submitted #101434

Closed
ghost opened this issue Jan 11, 2025 · 2 comments
Closed

LineEdit loses text input focus after input has been submitted #101434

ghost opened this issue Jan 11, 2025 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Jan 11, 2025

Tested versions

  • Reproducible in 4.4+
  • Not reproducible in 4.3

System information

Godot v4.4.dev7.mono - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Mon, 09 Dec 2024 11:58:37 +0000 on X11 - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce GTX 1050 Ti (nvidia; 550.135) - AMD Ryzen 7 2700 Eight-Core Processor (16 threads)

Issue description

Whenever a LineEdit submits its entered text (primarily via the user pressing ENTER), it partially loses focus, in Godot 4.4+. Specifically, you can no longer keep typing.

See the MRP.

In 4.3, you can just keep typing after pressing ENTER while on the LineEdit. In 4.4+, you need an additional ENTER key stroke to be allowed to type on the LineEdit again. Even though it still has focus.

Steps to reproduce

  • Create empty project.
  • Add a LineEdit with code attached to the text_submitted signal.
  • Run the project and keep typing. On 4.3, you can just type text, ENTER, type more text, ENTER, etc. On 4.4, you need to do type text, ENTER, ENTER, type more text, ENTER, ENTER.

Minimal reproduction project (MRP)

LineEditFocus.zip

Pardon the C#. I've never used GDScript.

@Rocka06
Copy link
Contributor

Rocka06 commented Jan 11, 2025

#100240 added the keep_editing_on_text_submit property to the editor, which fixes the issue when enabled. The PR was only merged a week ago, so it's not available in any of the official builds yet.

@ghost
Copy link
Author

ghost commented Jan 11, 2025

#100240 added the keep_editing_on_text_submit property to the editor, which fixes the issue when enabled. The PR was only merged a week ago, so it's not available in any of the official builds yet.

Thanks for pointing that one out to me. Good to know a solution is in the pipeline. Again, thanks.

@ghost ghost closed this as completed Jan 11, 2025
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants