summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorNicolas Laurito <Zamaroht@users.noreply.github.com>2015-05-10 00:46:16 -0300
committerNicolas Laurito <Zamaroht@users.noreply.github.com>2015-05-10 00:46:16 -0300
commitef8a402f71e92992e236504490a1533fa9f5d2b2 (patch)
tree0047b8d0291353f7848778c71fb9e61080859080 /demos
parentd1e4d6e997d2c2f753ee510fcd13dee08b214968 (diff)
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.
Diffstat (limited to 'demos')
-rw-r--r--demos/2d/tetris/grid.gd1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/2d/tetris/grid.gd b/demos/2d/tetris/grid.gd
index dc89300881..8708d168e4 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()