I have set in Keymap that the Z key is executed with “Press”. The first one is useful and the second one cannot be used. The latter one must be executed with other commands. Not the effect I want.
I think it can only be fully realized by using code to make realistic judgments
Change Press on one of them to Release. But to save yourself a headache, it’s better to use F for Frame Selected. Having them both mapped to the same button will just cause problems.
Yes thats what kekits operator does, as @impacman said. You can test it by using the operator search. Or directly change your shortcut, its exactly that.