From 2ccf4d2e4e75c4445d79cc013075e9e431875472 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Tue, 4 Jan 2022 17:11:08 +0100 Subject: [PATCH] fix: don't pass key press to moving elements --- sonic-radiance.love/birb/modules/gui/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-radiance.love/birb/modules/gui/init.lua b/sonic-radiance.love/birb/modules/gui/init.lua index 7d33959..9e5370b 100644 --- a/sonic-radiance.love/birb/modules/gui/init.lua +++ b/sonic-radiance.love/birb/modules/gui/init.lua @@ -152,7 +152,7 @@ function Gui:keycheck(keys) if (haveFocus) then local elem = self:getFocusedElement() for key,_ in pairs(keys) do - if keys[key].isPressed then + if (keys[key].isPressed and not elem:isTransforming()) then elem:keypressed(key) end end