This can be used to make a bunch of actions mutually exclusive. This patch only implements the exclusivity behavior for buttons.