Last active
December 8, 2021 19:20
-
-
Save fukayatsu/c93d036e0b6cc010289facb67fc325e8 to your computer and use it in GitHub Desktop.
Fix "Cmd+[" / "Cmd+Shift+[" on M1 Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title":"VSCode Fix", | |
"rules":[ | |
{ | |
"description":"Fix Cmd+[", | |
"_comment":"https://github.com/microsoft/vscode/issues/115651", | |
"manipulators":[ | |
{ | |
"conditions":[ | |
{ | |
"type":"frontmost_application_if", | |
"bundle_identifiers":[ | |
"^com\\.microsoft\\.VSCode" | |
] | |
} | |
], | |
"from":{ | |
"key_code":"open_bracket", | |
"modifiers":{ | |
"mandatory":[ | |
"command" | |
], | |
"optional":[ | |
"fn", | |
"command", | |
"control", | |
"option", | |
"shift" | |
] | |
} | |
}, | |
"to":[ | |
{ | |
"key_code":"caps_lock" | |
}, | |
{ | |
"key_code":"open_bracket", | |
"modifiers":[ | |
"command" | |
] | |
}, | |
{ | |
"key_code":"caps_lock" | |
} | |
], | |
"type":"basic" | |
} | |
] | |
} | |
] | |
} |
TODO:
- Consider the case that caps lock is already enabled
from.modifiers.optional
:["any"]
=>["fn", "command", "control", "option", "shift"]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
microsoft/vscode#115651