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

20 lines
393 B
Markdown

# Object
## isFocused
Returns if the object is currently the focused object of the parent frame
### Returns
1. `boolean` Whether the object is focused
#### Usage
* Prints whether the button is focused to the debug console
```lua
local mainFrame = basalt.createFrame()
local aButton = mainFrame:addButton()
basalt.debug(aButton:isFocused()) -- shows true or false as a debug message
```