Frame.Event:KeyFocusGain()

From Riftui Wiki

Jump to: navigation, search

This function is triggered when frame gets key focus.

Contents

Signature

function frame.Event:KeyFocusGain()
       ...
end

Parameters

None

Return Value

None

Example

local context = UI.CreateContext("SampleContext")
local frame = UI.CreateFrame("Frame", "SampleFrame", context)
 
-- Overload the KeyFocusGain() function --
function frame.Event:KeyFocusGain()
       -- Print out KeyFocusGain! --
       print("KeyFocusGain!")
end
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox