Returns the frame currently handling keyboard input. Typically an EditBox

See also Keyboard functions, Utility functions.


frame = GetCurrentKeyBoardFocus()


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


# 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")