Why is spacebar toggling layer visibility

Hi,

I’ve looked under hotkeys and cant find an option to change toggling of layer visibility.
When I use spacebar to pan the view it also toggles the selected layer visibility which is annoying.

Spacebar toggles layer visibility when your focus is in the layer panel. Click the map to bring focus to the editor, and then Spacebar will pan instead.