You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made sure this feature is not in the commands list
I searched and didn't find this feature request in the listed issues
Hi, I recently find out that there is a prefs file which manages all the system keyboard shortcuts. It's named com.apple.symbolichotkeys.plist and it's in ~/Library/Preferences/. I've figured out how does this prefs file work, but I don't know the defaults command for it. I will explain how does this file work, and hopefully someone can find the command.
Open this file with Xcode, and It would look like this:
There are a bunch of key, and each key is an ID number of a shortcut. For example, the key of Command + Option + Space is 65.
enabled is a bool value controls whether this shortcuts is enabled.
parameters is an array controls which keys are assigned to this shortcut.
Item 0 is the ASCII code of the character. For example, the ASCII code of Space is 32, so the Item 0 is set to 32. For non-ASCII characters, Item 0 is set to 65535.
Item 1 is the keyboard key code for the character. The key code for Space key is 49, so Item 1 is set to 49. A few key codes are listing here and Key Codes is helpful to find all the key codes.
Item 2 is the sum of the Control, Command, Shift and Option keys. These are bits 17-20 in binary: Shift is bit 17(=131072), Control is bit 18(=262144), Option is bit 19(=524288), and Command is bit 20(=1048576). For Command + Option + Space, it means 1048576 + 524288 = 1572864, so Item 2 is set to 1572864.
Restarting the Mac is necessary to take into effect the changes.
For more info, see: krypted.com web.archive.org
The text was updated successfully, but these errors were encountered:
Hi, I recently find out that there is a prefs file which manages all the system keyboard shortcuts. It's named
com.apple.symbolichotkeys.plist
and it's in~/Library/Preferences/
. I've figured out how does this prefs file work, but I don't know the defaults command for it. I will explain how does this file work, and hopefully someone can find the command.Open this file with Xcode, and It would look like this:
There are a bunch of
key
, and eachkey
is an ID number of a shortcut. For example, the key of Command + Option + Space is 65.enabled
is a bool value controls whether this shortcuts is enabled.parameters
is an array controls which keys are assigned to this shortcut.Item 0
is the ASCII code of the character. For example, the ASCII code of Space is 32, so theItem 0
is set to32
. For non-ASCII characters,Item 0
is set to65535
.Item 1
is the keyboard key code for the character. The key code for Space key is 49, soItem 1
is set to49
. A few key codes are listing here and Key Codes is helpful to find all the key codes.Item 2
is the sum of the Control, Command, Shift and Option keys. These are bits 17-20 in binary: Shift is bit 17(=131072), Control is bit 18(=262144), Option is bit 19(=524288), and Command is bit 20(=1048576). For Command + Option + Space, it means 1048576 + 524288 = 1572864, soItem 2
is set to1572864
.Restarting the Mac is necessary to take into effect the changes.
For more info, see:
krypted.com
web.archive.org
The text was updated successfully, but these errors were encountered: