fixed unfocus all

This commit is contained in:
Mikayla Fischler 2023-10-15 16:49:03 -04:00
parent 8b65956dcc
commit 43e545b6ae
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ local flasher = require("graphics.flasher")
local core = {} local core = {}
core.version = "2.0.2" core.version = "2.0.3"
core.flasher = flasher core.flasher = flasher
core.events = events core.events = events

View File

@ -666,7 +666,7 @@ function element.new(args, child_offset_x, child_offset_y)
-- unfocus this element and all its children -- unfocus this element and all its children
function public.unfocus_all() function public.unfocus_all()
public.unfocus() public.unfocus()
for _, child in pairs(protected.children) do child.get().unfocus() end for _, child in pairs(protected.children) do child.get().unfocus_all() end
end end
-- custom recolor command, varies by element if implemented -- custom recolor command, varies by element if implemented