From ef8a402f71e92992e236504490a1533fa9f5d2b2 Mon Sep 17 00:00:00 2001 From: Nicolas Laurito Date: Sun, 10 May 2015 00:46:16 -0300 Subject: [PATCH] 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. --- demos/2d/tetris/grid.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/demos/2d/tetris/grid.gd b/demos/2d/tetris/grid.gd index dc89300881e..8708d168e4a 100644 --- a/demos/2d/tetris/grid.gd +++ b/demos/2d/tetris/grid.gd @@ -143,6 +143,7 @@ func restart_pressed(): cells.clear() get_node("gameover").set_text("") piece_active=true + get_node("../restart").release_focus() update()