WoWInterface - View Single Post - How to detect that chat input is active?
View Single Post
08-28-18, 09:09 AM   #2
A Cyclonian
LanceDH's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 41
There might be a different way, but you could hook into its OnEditFocusGained and OnEditFocusLost scripts.
Note that, if it loses focus by the player clicking another edit box, 'OnEditFocusLost' will trigger twice.

Lua Code:
  1. ChatFrame1EditBox:HookScript("OnEditFocusGained", function()
  2.             print("gained")
  3.         end)
  5. ChatFrame1EditBox:HookScript("OnEditFocusLost", function()
  6.             print("lost")
  7.         end)
  Reply With Quote