godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
87.04k stars 19.54k forks source link

Virtual Keyboard Not Emitting text_changed() Signal #64590

Open ChildLearningClub opened 1 year ago

ChildLearningClub commented 1 year ago

Godot version

3.5.stable

System information

ios 15.6 safari web browser GLES2

Issue description

Attempting to update a Label Node from a TextEdit Node Using the text_changed() Signal built into TextEdit Node.

func _on_AddMessage_text_changed():
    $"%AddMessageLabel".text = $"%AddMessage".text

The signal works as expected with an actual keyboard on desktop in both the web export and the standard F5 Play the project button, but does not function when on ios Safari.

Running the same code within the _input(event) function does however work:

func _input(event):
    $"%AddMessageLabel".text = $"%AddMessage".text

Steps to reproduce

Create a TextEdit Node with a script add in the text_changed() signal and set a Label Node's text equal to its text:

func _on_TextEdit_text_changed():
    $"%Label".text = $"%TextEdit".text

Export to HTML5 with Virtual Keyboard enabled.

Minimal reproduction project

No response

GustavoVivas commented 1 year ago

Godot version 3.5.2-stable

System information ios 15.6 safari web browser GLES2

also present in:

Hi!. I have a project that presented a similar issue. The text_changed signal was working fine for about a year until two weeks ago. As stated in the previous post "The signal works as expected with an actual keyboard on desktop in both the web export and the standard F5 Play the project button, but does not function when on ios Safari." in my case it doesn't work on android or safari.

Have a nice day. LineEdi_text_changed.zip

exscruzme commented 2 months ago

Hi, was there any update on this? I'm having this issue now as well.