Fandom

WoWWiki

API Frame EnableKeyboard

104,633pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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.

It should also be noted that the frameStrata has to be at least DIALOG or higher for this to work.

frame:EnableKeyboard(enableFlag)

Parameters Edit

Arguments Edit

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

Also on Fandom

Random Wiki