lOriginal_SetItemRef = SetItemRef; -- Remember old function SetItemRef = Hyper_SetItemRef; -- Hook in ours function Hyper_SetItemRef(link, text, button) if ( IsShiftKeyDown() ) then if ( Hyper_NotepadFrame:IsVisible() ) then Hyper_NotepadEditBox:Insert(text); end end end