Widget API: Frame:EnableKeyboard

Revision as of 12:56, 29 August 2006 by WoWWiki>Scotsalmon (first draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget API ← Frame < EnableKeyboard

Frame:EnableKeyboard

Allows this frame to receive keyboard input via OnKeyUp and OnKeyDown. The frame must be shown to receive keyboard events. The frame receiving keyboard input is the only frame receiving keyboard input, which means for example if you show a frame that receives keyboard events, the character cannot move with the keyboard or use key bindings until that frame is hidden again.

frame:EnableKeyboard(enableFlag)

Parameters

Arguments

enableFlag
Boolean - Whether to enable (true) or disable (false)