I continually hit ⌘-P and ⌘-S while Terminal is in focus, due to alt-tabbing between my text editor and other programs.
Does anyone know how to disable these keys in Terminal.app?
|
|
|
You could try out Keymando which will let you set specific shortcuts for programs. In this case, you would set those commands to do nothing. Another solution would be to use iTerm 2, which allows you to specify shortcuts for keys (or to ignore). |
||||
|
Removing a Default Keyboard Shortcut in OS XTL;DR VersionRun the following two commands in Terminal, then restart it.
Full ExplanationYou can use the defaults command to disable a built-in keyboard shortcut for an app (for a custom shortcut, just remove it from Keyboard Preferences). To disable it, you need to know the exact name of the menu item the shortcut is associated with and the bundle identifier of the app. To get an app's bundle identifier, run Once you have that information, the proper command is:
Followed by a restart of the app. Restoring the ShortcutsIf you want to undo this, you can either remove the entries in Keyboard Preferences if they appear there (they don't always), or rewrite the First, check if you have any other shortcuts set, by running If you only see the entries you created, then you can just run If there are other entries (most likely custom shortcuts you set in Keyboard Preferences), then you need to modify the entry, read below. Selectively Restoring Default ShortcutsRun
Remove the lines you want to reset ( |
|||
|
|