Returns the frame currently handling keyboard input. Typically an EditBox


See also Keyboard functions, Utility functions.

Signature:

frame = GetCurrentKeyBoardFocus()

Returns:

  • frame - Frame currently handling keyboard input, or nil if no frame is currently focused (table)

Examples:

# put this in a macro and try running it (from an action bar or somesuch)
# while typing in different text boxes
/run frame = GetCurrentKeyBoardFocus () print(frame and frame:GetName() or "no focus")