Disable Shift Cmd Q for logout
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"?>
<root>
<item>
<name>Disable COMMAND SHIFT Q for Logout</name>
<identifier>disable_CMD_SHIFT_Q_private</identifier>
<autogen>__KeyToKey__ KeyCode::Q, VK_SHIFT | VK_COMMAND | ModifierFlag::NONE, KeyCode::VK_NONE</autogen>
</item>
</root>
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:
- System Preferences > Keyboard > Shortcuts > App Shortcuts.
- '+' to add a shortcut
- Application:
All Applications
- 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-; - Keyboard Shortcut: ctrl-shift-cmd-Q (or whatever you prefer: something different to shift-cmd-Q)
- Log out and in again.
- Note that the keyboard shortcut has changed in the Apple menu, and shift-cmd-Q no longer triggers the menu.