private void OnPropagateHotKeys(object sender, EventArgs e) { string sControl = sender == tbGAT ? "m_hkAutotype" : "m_hkAutotypePassword"; var c = Tools.GetControl(sControl, m_ParentForm) as HotKeyControlEx; if (c == null) { return; } c.Text = (sender as HotKeyControlEx).Text; var st = new System.Diagnostics.StackTrace().GetFrames(); var sfPluginOptionsEntered = st.Where(x => x.GetMethod().Name.ToLowerInvariant().Contains("pluginoptionsenter")).FirstOrDefault(); if (sfPluginOptionsEntered == null) { SetHotKey(c, GetHotKey(sender as HotKeyControlEx)); } else { SetHotKey(sender as HotKeyControlEx, GetHotKey(c)); } }