This shortcut drives me crazy. I would like to remap command-tab for snippet insertion while coding, but the switcher gets in the way...
You can map command-tab to another key combination with KeyRemap4MacBook:
This would disable command-tab and shift-command-tab:
You can do it as the assembly level. For ML 10.8.3, this Cmd+Tab registration happens in subroutine at address 0x10000b258. In pseudo-code, it looks like:
So if you replace the following byte codes:
And resign your Dock.app, it will work. You also have to unprotect the Dock binary before you do this as the Dock binary is encrypted.
Would an acceptable answer include remaping it?
Mac OS X Lion (10.7) has difficulty detecting the keyboard layout when I first plugged it in. But after following the instructions (i.e. press the key to the right of Left Shift, etc.) it correctly identifies the layout.
In System Preferences, Lion has a wonderful keyboard panel:
Next, go to Modifier Keys…
Bingo, now CapsLock behaves as Control.
Or, you could try and effect the key bindings:
Edit the default keybindings file, ~/Library/KeyBindings/DefaultKeyBinding.dict. Create the directory and/or the file if they’re not already there, and make it look like this:
If there are already entries in DefaultKeyBinding.dict, just add the 4 new mappings above to the main section of your file. A reboot may be needed to get it to take effect.
You will need to adjust the code above for what you are trying to do