I would like to disable Shift+Command+Q keyboard shortcut for Log Out.

I am using Karabiner at the moment, but I only managed to disable it completely using the following xml:

<?xml version="1.0"?>
        <name>Disable COMMAND SHIFT Q for Logout</name>
        <autogen>__KeyToKey__ KeyCode::Q, VK_SHIFT | VK_COMMAND | ModifierFlag::NONE, KeyCode::VK_NONE</autogen>

but I would like to have the keyboard combination available in emacs (in ESS for debugging).

Is there some way that I can effectively unmap the keyboard combination?


The following works for me on 10.9.5:

  1. System Preferences > Keyboard > Shortcuts > App Shortcuts.
  2. '+' to add a shortcut
  3. Application: All Applications
  4. Menu Title: Log Out [Your Name]… Here, copy the exact text shown in the Apple menu, replacing [Your Name], and note that the ellipsis must be typed with alt-;
  5. Keyboard Shortcut: ctrl-shift-cmd-Q (or whatever you prefer: something different to shift-cmd-Q)
  6. Log out and in again.
  7. Note that the keyboard shortcut has changed in the Apple menu, and shift-cmd-Q no longer triggers the menu.
  • Works perfectly. Very good to remember that the system shortcuts can be modified even if they are not visible in Preferences > Keyboard > Shortcuts. – Rainer Oct 13 '15 at 8:58
  • Works for me as well on Yosemite (10.10.5) – Steven Apr 7 '16 at 18:26
  • 2
    This is not working for me on Sierra. I ensured the text is identical, and actually tried both regular ... and Alt key combination. But shortcut remains the same, unfortunately. – SilverSideDown Aug 29 '17 at 13:10
  • 1
    I was able to get this to work on High Sierra by doing the above for BOTH Log Out <Your Name> and Log Out <Your Name>…. Weirdly enough, by default High Sierra shows just Log Out <Your Name>…. If you override this shortcut as described, another item appears in the "Apple" menu, this time without the ellipsis: Log Out <Your Name>, and having the same cmd_shift_q shortcut. Only when you override this second item can you truly free up cmd_shift_q. – Sean Mackesey Mar 6 '18 at 20:51
  • Works for me on Catalina 10.15.5. I used this technique to enable control-command-Q as a shortcut in iTerm2. – Sam Dutton Jul 21 '20 at 17:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .