What is the Difference between editing_toggled and focus_entered/exited in LineEdit

Godot Version

4.4

Question

editing_toggled returns true or false instead of having different signals. It also is only in LineEdit and not in Control. But otherwise I couldnt notice any difference in behaviour.
I also noticed that exiting the edting state without losing focus doesnt fire the editing_toggled signal. (for me. Feels like a bug? Is it?)
You have to lose focus by selecting something else for the signal to be fired.

How are you exiting the edit state without losing focus? Pressing ui_text_submit or ui_cancel exits the edit state without losing focus for me, and it fires the editing_toggled signal (I am using 4.4.1 stable).

I am calling unedit()
I do this because I wanted to exit editing mode when the mouse is clicked anywhere but the LineEdit.

You’re right, it does seem like this might be a bug. You can report it on GitHub, I did not find a similar issue that someone else has reported before.

1 Like

thanks, I did that:

Oh and by the way for all who are looking to fix this in the meantime. I just called the editing_toggled(false) signal manually after calling unedit().

1 Like