How do I change the keyboard shortcut for highlighting text in Preview (OS X Yosemite)? By default it is Ctrl+Command+H, but I'd prefer a different combination (maybe Ctrl+E) as that’s easier to use. However, the following method does not work. How do I resolve this?
In OS X El Capitan 10.11.4 - macOS Catalina (10.15), you are able to set up a custom shortcut like this:
- Open the Preview app.
Enter Preview -> Services -> Services Preferences
Click on the
+button and the fill in the fields like below. It is important that the Menu Title perfectly matches the operation name to which you want to assign the shortcut.
Done. Now you can highlight text in Preview using your custom shortcut.
The error is that you've partly listed the hierarchy, though incorrectly. Normally, you don't need to specify the menu hierarchy at all - simply use 'Highlight Text' as your menu item.
You can use the hierarchy syntax, as mentioned in Arthur Hammer's answer -
Tools->Annotate->Highlight Text - but unless there is potential for confusion, if the same command was present in two hierarchies, performing slightly different tasks, for instance, then there is no need.
Strangely, I cannot make any hotkey work if I specify that item for Preview only, as suggested in comments. Frankly, I have no idea why it would not work, as that would be the standard way to implement something like this.
Edit: This appears to have been a bug in that particular version of Preview & now works as expected.
Testing a similar sub-menu in Safari by adding Ctrl ⌃ E to Check Spelling While Typing works perfectly.
The workaround appears to be what you almost had - to enter it as a system-wide hotkey, then it works just fine.