Disable Command-W Everywhere

keyboard

There was a question on Disable Command-W in the terminal but is there a way to determine Command-W globally on MacOS? I keep accidentally closing my applications.

Best Answer

System Preferences -> Keyboard -> Shortcuts -> App Shortcuts

Just add a new CMD-W shortcut should override the actual behavior.

Edit: https://discussions.apple.com/thread/7634486