From d1ed55677e2750867150ec4911b6b79bab1fb401 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 19 Oct 2025 22:58:21 +0200 Subject: [PATCH] feat: dont close application when user presses Esc key --- tetris.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tetris.go b/tetris.go index 61a9ce6..3cb4040 100644 --- a/tetris.go +++ b/tetris.go @@ -22,6 +22,9 @@ func main() { }) defer render.Exit() + // Dont close application when user presses escape + rl.SetExitKey(rl.KeyNull) + // Set window icon if icon := graphics.LoadImageFromMemory(".png", assets.Icon); icon != nil { rl.SetWindowIcon(*icon)