fix: don't pass key press to moving elements

This commit is contained in:
Kazhnuz 2022-01-04 17:11:08 +01:00
parent 193b9cffbc
commit 2ccf4d2e4e

View file

@ -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