39

Mac OS X Lion introduced a new feature where in many applications you can press (Command-Control-D) to produce a popup with the definition for the word under the mouse cursor. A side effect of this is that you can no longer use the same shortcut to access functionality in other applications (for example, Emacs).

Is it possible to either

a) disable the word definition Command-Control-D keyboard shortcut, or
b) change the word definition keyboard shortcut to something other than Command-Control-D?

3 Answers3

56

To disable the Control-Command-D binding enter the following in the terminal:

defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 '<dict><key>enabled</key><false/></dict>'

and restart.

  • This is the most reliable way to disable the command, was difficult to find this! – Joel Feb 14 '14 at 23:19
  • 1
    Restarting is a key part. I've seen the defaults invocation mentioned in a few places on the web, but none of them mentioned restarting, which is required for the new setting to take effect. (At least on OS X 10.10.1.) – Davor Cubranic Jan 16 '15 at 18:37
  • 1
    Without disabling this key, `C-M-d' did not work on Emacs GUI when using Command as Meta (see here). I've sent a PR to mathiasbynens's .osx dotfiles so that it gets disabled there and many Emacs users can benefit. Vote it up! :) – Galder Zamarreño Feb 24 '16 at 08:14
  • Looks like PR was closed, but at least issue is well documented. – dev Mar 17 '17 at 15:43
  • 1
    this is the only way to free this key combination (for use in another app) many thx bro!! – Dreanmer Jan 24 '18 at 11:40
  • In macOS High Sierra (10.13), there is no setting to disable this in System Preferences. This is the only way to go. – aylr Jul 26 '18 at 17:21
  • This is still the way in Sonoma. Worth noting is that it required a system restart for me. None of the Settings UI stuff worked, at least not without this. (They still may be required in addition to this.). Even when disabled or changed to another keyboard shortcut, it was still deeply hardwired in. This behavior is one of the dirtiest Mac things I've ever seen. It feel like a typical day in the Windows Registry. – Joel Mellon Jan 02 '24 at 23:44
9

Yes, through System Preferences, you can change and disable keyboard shortcuts. Go to System Prefs -> Keyboard -> and hit the tab Keyboard Shortcuts. Click the Services entry, and scroll down to the Searching set of shortcuts. Uncheck the lookup in dictionary to disable it, or double click the space to the right to change the shortcut.

Ethan Lee
  • 3,994
  • 7
    There is no keyboard shortcut entry for this particular key combination in System Preferences. – Zane Shelby Sep 06 '11 at 23:34
  • 1
    Gaah! This is just now starting to bite me.

    Also: Hi, Zane!

    – offby1 Feb 14 '13 at 03:05
  • Disabling it didn't work for me. I needed to change the shortcut to something random. That worked. – tonisives Jan 20 '22 at 00:14
  • 1
    In Ventura (13.3.1), this solution worked. One weird thing I found is that no keystroke is assigned to it but "Cmd-Control-D" triggers the "lookup in dictionary." – kaorukobo May 09 '23 at 05:13
  • @kaorukobo You should create a new answer, or edit this one to add this info. Saved me a ton of time most likely! – Joel Mellon Oct 27 '23 at 18:45
3

In Lion specifically, System Preferences / Keyboard / Keyboard Shortcuts / Searching / Look Up in Dictionary will allow you to assign an additional shortcut keystroke to do a Dictionary lookup, but it won't disable Command-Control-D for other applications to use.

In Snow Leopard, the same Command-Control-D lookup is available, but it can be reassigned by the user.

I hope this is just seen as a bug to correct in an update rather than a new 'feature'. I'd grown accustomed to mapping that combination to other things in SL.

  • 1
    in macOs Sierra 10.12.5 , its under  --> System Preferences --> Keyboard > Shortcuts (tab) > Services ( on left pan) > Searching ( on right pan) and then Uncheck "Lookup in Directory" checkbox – xkeshav Aug 04 '17 at 18:04