Control:IsFocused
Checks whether a textbox has focus.
Syntax
Signature
Control:IsFocused() -> booleanAliases
This function has no aliases.
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
boolean | Whether this control is the focused textbox. |
Example
Luau
local Box = Drawing.create("TextBox", {Text = "Hello"})
local Result = Box:IsFocused()
print(Result)