- Documentation
- Client functions
- guiGetFocus
Function
guiGetFocus
Returns the focused control (the one that receives typing).
Syntax
element guiGetFocus()Returns
The control or false.
Example
bindKey("t", "down", function()
if guiGetFocus() then return end
outputChatBox("Klawisz T poza polem tekstowym")
end)