Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac Disable Shift Cmd Q for logout #177

Open
itgoyo opened this issue Jul 26, 2019 · 0 comments
Open

Mac Disable Shift Cmd Q for logout #177

itgoyo opened this issue Jul 26, 2019 · 0 comments

Comments

@itgoyo
Copy link
Owner

itgoyo commented Jul 26, 2019

方法一

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>

方法二

11

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant