From 9d8f6aa60da3746ba9b469050e8071b3e66224da Mon Sep 17 00:00:00 2001 From: Michael Freno Date: Thu, 11 Dec 2025 22:19:10 -0500 Subject: [PATCH] fix clear focus loop --- FlexLove.lua | 2 +- profiling/main.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FlexLove.lua b/FlexLove.lua index 94a3604..01f573d 100644 --- a/FlexLove.lua +++ b/FlexLove.lua @@ -1181,7 +1181,7 @@ end --- Clear focus from any element --- Removes keyboard focus from the currently focused element function flexlove.clearFocus() - Context.clearFocus() + Context.setFocused(nil) end flexlove.Animation = Animation diff --git a/profiling/main.lua b/profiling/main.lua index 97d97fe..41406ce 100644 --- a/profiling/main.lua +++ b/profiling/main.lua @@ -197,7 +197,7 @@ local function buildMenu() justifyContent = "center", alignItems = "center", alignSelf = "center", - --mode = "retained", + z = 100, padding = { horizontal = 15, vertical = 15 }, onEvent = function(_, event) if event.type == "release" then