how to implement my own focus fuction like press F key in UE4 editor

in UE4 editor, when you press f key,the camera will move to position which can see the selected object perfectly.THIS is not a “look at”.the camera wont rotate.