Lock Folder Tree keyboard shortcut

Hi everyone,

Is it possible to create a button and assign a keyboard shortcut to it to lock navigation for the Folder Tree?

Thank you for the help.

Sorry, I don't think there is a command for it.