Command-Control-Arrow beeps (plays alert sound) in Lion

I've noticed since upgrading to Lion that if I press Command-Control-Left/Right (and sometimes Down as well; see below), my computer beeps at me (plays alert sound).

It doesn't occur in all applications:

  • In Console, I can press any of the above key combinations, and there's no beep.
  • In Mail, it beeps if I press Command-Control-Left/Right, but not Up/Down.
  • In most every other application, every combination except Command-Control-Up causes a beep.

I can't seem to find any menu commands that it might be trying to invoke, although even if that were the case, applications such as NetBeans and PhpStorm are the proverbial monkey wrench here: I have Command-Control-Left mapped to "go to last edit". When I press that key combination, my Mac still beeps at me, but it it also does move the cursor to the last edit location.

What does Command-Control-Left/Right/Up/Down map to that my Mac is complaining about?


Solution 1:

The beeping you are hearing in this context is not because those key commands are mapped to something but quite the contrary because they are not.

Typing an unmapped key command will result in an audible bell.

As you note Command-Control-Right in results in an audible bell in Mail.app. You will also note that Command-N results in a new message.

So here's a proof to confirm my assertion:

  • Open System Preferences > Keyboard
  • Select Keyboard Shortcuts from the pillbox at the top
  • From the menu at the right choose Application Shortcuts
  • Click the small + sign at the bottom left of the right panel
  • From the Application pull down select Mail
  • In the Menu Title field type "New Message" (no quotes)
  • Place your cursor in the Keyboard Shortcut field and type Command-Control-Right
  • Click Add

Now return to Mail and type Command-Control-Right. A new message will be created but if you type Command-N you will hear the audible bell. This is because Command-N is no longer mapped to anything. We replaced it.

So when you hear the audible bell it often means that you are trying to do something that is not possible (i.e. typing a key command that has no meaning for the current application).

Solution 2:

I've found a nice workaround. Create the file ~/Library/KeyBindings/DefaultKeyBinding.dict with the following content:

<=10.10 Yosemite (Found on GitHub/Atom)

{
    "^@\UF701" = "noop:";
    "^@\UF702" = "noop:";
    "^@\UF703" = "noop:";
}

10.11 El Capitan through 12.0 Monterey (from Adobe/Brackets)
You'll need to create the ~/Library/KeyBindings directory first, and the @ and ^ characters are switched.

{
    "@^\UF701" = "noop:";
    "@^\UF702" = "noop:";
    "@^\UF703" = "noop:";
}