Used to express feelings or emotions towards a situation, an action, or an outcome.
Long explanation:
The ~ことに grammar point is used to express feelings or emotions towards a situation, an action, or an outcome. It can be translated as 'what', 'how', 'it is that', or 'the fact that' in English. The formation differs depending on whether it is used with a verb, い-adjective, な-adjective, or noun.