Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable keyboard shortcuts in Mac OS X?

I would like to disable keyboard shortcuts Command-W and Command-Q in Mac OS X 10.8 Mountain Lion.

This is because they interfere with emacs commands which I run from inside a terminal running from xQuartz. How can I disable the keyboard shortcuts?

like image 699
Ekalavya Avatar asked Mar 30 '13 13:03

Ekalavya


People also ask

Can you turn off keyboard shortcuts?

Select “Keyboard” from the list on the left side of your screen. Click on “Shortcuts” in the list of settings across the top of the window. Once inside “Shortcuts,” uncheck the box next to each shortcut to disable it.

How do you turn on keyboard shortcuts on a Mac?

Choose Apple menu  > System Preferences, then click Keyboard. Click Shortcuts. From the bottom of the preferences window, select the checkbox “Use keyboard navigation to move focus between controls.” (In macOS Mojave or earlier, this setting appears as an “All controls” button.)

How do I turn off keyboard shortcuts in Safari?

The shortcuts are defined as the first few bookmarks in your Bookmarks Bar. You can see which bookmarks are defined by going to Bookmarks → Favorites Bar. Since they are menu items, you can disable them by remapping them to something else. Open System Preferences → Keyboard → App Shortcuts.


1 Answers

BetterTouchTool is no longer free.

I reached this page because I wanted to disable command-h (hide application) which is not shown in System Preferences. This is my solution.

BetterTouchTool is a utility which can disable keyboard shortcuts (and has many other uses). http://www.boastr.de/

To disable command-w globally

  1. Install BetterTouchTool
  2. Click on the BetterTouchTool menubar item and choose "Preferences"
  3. Click "Gestures"
  4. Click "Keyboard"
  5. Click "Global"
  6. Click "Add New Shortcut"
  7. Click "Keyboard Shortcut"
  8. Type the shortcut you want to disable (for example, command-w)
  9. Set Trigger Predefined Action to "No Action" (which is the default)

Note that you can also set a keyboard shortcut for a specific application.

To disable command-w only for Terminal

  1. Install BetterTouchTool
  2. Click on the BetterTouchTool menubar item and choose "Preferences"
  3. Click "Gestures"
  4. Click "Keyboard"
  5. Click the plus sign at the bottom of the "Select Application" pane
  6. Choose Terminal (in Applications/Utilities folder)
  7. Click "Add New Shortcut"
  8. Click "Keyboard Shortcut"
  9. Type the shortcut you want to disable (for example, command-w)
  10. Set Trigger Predefined Action to "No Action" (which is the default)
like image 130
World Geek Avatar answered Sep 18 '22 19:09

World Geek