You always can init some flag when you press one button and then use it in handler for other