Could you tell me which file I should add to?

This code need to be added after grid initialization code on problematic page ( where you have incorrect initial focus )