Added cancelling of opening inventory and inventory click events.