pesde goatsoft / lucy

useFocus

Lucy.useFocus tracks whether app.input:focusRef() currently rests on target or any descendant inside it.

Usage

local focus = Lucy.useFocus(app, target)
ArgumentTypeDefaultWhat it is
appApprequiredThe app
targetGuiObject | HandlerequiredThe instance or handle to follow

Returns { active } where focus.active() is a tracked boolean getter.