LineEdit node won't stop being selected even after focus loss

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jean dupond

Good morning everyone,

Whenever I focus a LineEdit Control node in Godot and write some value, I expect it to stop being focused whenever I click outside (kinda logic). But it simply does not work.

So for example, I write an input lets say Hello and then I click outside and press ‘v’ multiple times. The result is the LineEdit gets filled up like Hellovvvvvvv

I know there is that option deselect_on_focus_loss_enabled but it does not help.

Did anyone has this issue?

Thanks!

maybe it’s because what your are clicking on outside doesn’t steal the focus. I imagine clicking on another LineEdit or a button would solve your issue

godot_dev_ | 2023-05-23 15:00