Docs 1.6
Accidentally uploaded outdated 1.6 docs
This commit is contained in:
15
docs/docs1_6/objects/Frame/removeFocusedObject.md
Normal file
15
docs/docs1_6/objects/Frame/removeFocusedObject.md
Normal file
@@ -0,0 +1,15 @@
|
||||
## 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)
|
||||
```
|
||||
Reference in New Issue
Block a user