Files
Basalt/docs/objects/Frame/removeFocusedObject.md
Robert Jelic 51f6ebe7ce docs updates
2022-09-06 17:43:03 +02:00

15 lines
393 B
Markdown

## removeFocusedObject
Removes the currently focused object of that frame
#### Returns:
1. `frame` The frame being used
#### Usage:
* Creates a new button then removes the focus from that button when clicking on it
```lua
local main = basalt.createFrame()
local input = main:addInput():setFocus()
local aButton = main:addButton():onClick(function()
main:removeFocusedObject()
end)
```