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

393 B

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
local main = basalt.createFrame()
local input = main:addInput():setFocus()
local aButton = main:addButton():onClick(function() 
    main:removeFocusedObject()
end)