Files
Basalt/docs/docs1_6/objects/Object/onGetFocus.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +02:00

371 B

Object - Event

onGetFocus

onGetFocus(self)

This event gets triggered as soon as the object is the currently focused object.

local basalt = require("basalt")

local main = basalt.createFrame()
local aButton = main:addButton()
    :setPosition(3,3)
    :onGetFocus(
        function(self) 
            basalt.debug("Welcome back!") 
        end
    )