Files
Basalt/docs/objects/Object/onGetFocus.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

17 lines
354 B
Markdown

# onGetFocus
`onGetFocus(self)`<br>
This event gets triggered as soon as the object is the currently focused object.
```lua
local basalt = require("basalt")
local main = basalt.createFrame()
local aButton = main:addButton()
:setPosition(3,3)
:onGetFocus(
function(self)
basalt.debug("Welcome back!")
end
)
```