Skip to content

Instantly share code, notes, and snippets.

@ugultopu
Created February 25, 2021 00:35
Show Gist options
  • Save ugultopu/a4cbe0501a8db2be74cb8152273a09e4 to your computer and use it in GitHub Desktop.
Save ugultopu/a4cbe0501a8db2be74cb8152273a09e4 to your computer and use it in GitHub Desktop.

Occasionally, I press CMD-S by mistake. This causes the browser to stop responding for a few seconds while it prepares the current document to save, since CMD-S is the shortcut for it.

I almost never press CMD-S on purpose. Hence, I realized that if I can somehow disable this shortcut, this would be a good thing.

I'm not sure if it is possible to disable a keyboard shortcut for an application without downloading third-party software, but I have overridden the shortcut just by:

  • Launching "System Preferences".
  • Navigating to "Keyboard", "Shortcuts".
  • Clicking on the plus sign to add a new shortcut.
  • From the opened pop-up:
    • Selecting my web browser as the "Application"
    • Entering "Bookmark This Tab..." as the "Menu Title"
    • Focusing on the "Keyboard Shortcut" box and pressing CMD-S

Now, CMD-S will be the keyboard shortcut for bookmarking a tab on my browser. That is, it will override the behavior of CMD-S being the shortcut for "Save Page As...".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment