API:ChatFrame OnHyperlinkClick

__NOTOC__
Called when you click on a Hyperlink in a ChatFrame. This encompasses all links, player names, items, skills, etc.
ChatFrame_OnHyperlinkClick(this, link, key)
== Example ==
local SavedChatFrame_OnHyperlinkClick = ChatFrame_OnHyperlinkClick;
function AddonName_OnHyperlinkClick(this, link, key)
	local kind, data, name = ParseHyperlink(link);
	local editbox = GetKeyboardFocus();
	if (kind == "player") then
		if (key == "LBUTTON" and IsShiftKeyDown() and not editbox) then
			... Code ...
		end
	end
	SavedChatFrame_OnHyperlinkClick(this, link, key);
end
ChatFrame_OnHyperlinkClick = AddonName_OnHyperlinkClick;
== Notes ==
This is not an event, it is a function. To use this you must Hook the function.
Category:Functions