How to close all the gates at a time!

I made a line of gates(up) in a vertical line. Now! It is difficult to close each gate and open them back.

Double click one of them to select all of them visible on your screen.

yes I did, but I can close any one of them only, at one time

If they are all selected, locking one should lock them all. Maybe try using a hotkey?

what is the default hotkey? any clue?

I tried with the hotkey too

it didnot take any effect