Focus 3D view shortcut

Hi:

In version 4.11.20210226 when I used to press “F” while placing the mouse cursor on top of a model in the 3D view, the camera got centered where I pressed the button.

Is there any way to set up a keyboard shortcut (using a python script) with the same functionallity?

Thank you for your attention in advance.

You can right-click on a markup point and choose “Refocus camera on this point”.

Thank you for your answer Andras :))

It isn’t as comfortable as a keyboar shortcut but it certainly does what I need so I will use that.