简体   繁体   中英

How to find a Mac terminal command to turn off a default keyboard shortcut

I'm trying to find the equivalent terminal command for Mac, used to turn off these specific keyboard settings(and the checkbox at the bottom):

Mac系统键盘快捷键关闭以前的输入源

It's the control + space hotkey combination, that is also used by vscode to trigger suggestions

How can one find the correct command for turning this setting off? I found another post , but it mentions keyboard shortcuts for apps, not the system shortcuts

With the comment of Philippe :

The setting is in the result of command [defaults read com.apple.symbolichotkeys] key 60 atribute enabled = 1. You need to set it to 0.

I managed to find the following command that sets this to disabled:

plutil -replace AppleSymbolicHotKeys.60.enabled -bool NO ~/Library/Preferences/com.apple.symbolichotkeys.plist

And then using this command(or restarting the machine), we can make sure it's applied

/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u

Thanks for all the help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM