Android virtual keyboard enter key problem

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

I have a problem with android virtual keyboard when submitting highscores for game.
When I press the Enter-key for android it closes the keyboard and same time it closes the whole game. This wont happen when using normal pc keyboard.

Is there a way the virtual keyboard enter key wont take the whole game down?
Or maybe its just android 10 thing.

Same here!
let me know if you have a solution!

DisD | 2020-09-18 21:33

:bust_in_silhouette: Reply From: JackLaLonde

Here is my temporary workaround for 3.3:

var keyboard_open := false
signal text_entered_alt(new_text)

func _process(delta):
	if (OS.get_virtual_keyboard_height() != 0) :
		keyboard_open = true
	elif keyboard_open:
		keyboard_open = false
		emit_signal("text_entered_alt", text)