I’ve recently switched back to Safari from Chrome. I have Safari set with a couple of pinned tabs which works great. The only issue I have is that when I use a keyboard shortcut to close regular tabs (Command+W), if there is only one regular tab then it closes the Safari window.
Does anyone know of a way, possibly using AppleScript, to prevent Command+W from ever closing the window. I actually have a separate keyboard shortcut (Command+Shift+W) to close the window. If the last regular tab is closed then I want the window to persist and possibly have a blank tab remaining.