Frame:SetKeyFocus()

From Riftui Wiki

Jump to: navigation, search

Sets whether this frame has key focus or not.

Contents

Signature

frame:SetKeyFocus(focus)

Parameters

focus (boolean) - Whether the frame should have key focus or not.

Return Value

None

Example

local context = UI.CreateContext("SampleContext")
local frame = UI.CreateFrame("Frame", "SampleFrame", context)
-- Set Key Focus to this Frame --
frame:SetKeyFocus(true)
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox