As long as Hamas had kept sending rockets into Israel, the latter had the right to respond.
I'm tired of the mantra.
Of course they have a right to respond, but let's make crystal clear what you're inferring, i.e.:
As long as Hamas had kept sending rockets into Israel, the latter had the right to respond irrespective of the devastating effects on civilian life and civilian infrastructure.
No one is endowed with such a right.