do you mean the ac switches off when applying the brake smoothly or this happens when brakes are applied abruptly?
AC switches off when the brakes are fully pressed and the car comes to standstill