1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Remove focus from restart button, fixes #1850

Fixes a problem where the restart button would keep focus after being pressed, making the tetris' pieces impossible to rotate without activating the button again.
This commit is contained in:
Nicolas Laurito
2015-05-10 00:46:16 -03:00
parent d1e4d6e997
commit ef8a402f71

View File

@@ -143,6 +143,7 @@ func restart_pressed():
cells.clear()
get_node("gameover").set_text("")
piece_active=true
get_node("../restart").release_focus()
update()