ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. guiGetFocus

Function

guiGetFocus

ClientInterface (GUI)Trilogy Hub only

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)