private void HotKeySelectionOnHotKeyRegister(object sender, HotKeyRegistrationEventArgs e) { HotKeys.Unregister(e.OldKeyData, Owner); if (e.Global) { HotKeys.RegisterGlobal(e.Id, e.KeyData, Owner, e.Name, e.Action); } else { HotKeys.RegisterLocal(e.Id, e.KeyData, e.Name, e.Action); } }