Skip to content

Instantly share code, notes, and snippets.

@shuymn
Created December 8, 2020 07:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuymn/da0e3f179d8cf81d327b7acc621f3bf6 to your computer and use it in GitHub Desktop.
Save shuymn/da0e3f179d8cf81d327b7acc621f3bf6 to your computer and use it in GitHub Desktop.
Change Enter (New Line) behavior in Microsoft Teams like Slack on macOS
{
"title": "Custom key-binding in Microsoft Teams",
"rules": [
{
"description": "Custom key-binding in Microsoft Teams",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"bundle_identifiers": ["^com\\.microsoft\\.teams"],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "return_or_enter"
},
"to": [
{
"key_code": "return_or_enter",
"modifiers": ["shift"]
}
]
},
{
"type": "basic",
"conditions": [
{
"bundle_identifiers": ["^com\\.microsoft\\.teams"],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "return_or_enter",
"modifiers": ["command"]
},
"to": [
{
"key_code": "return_or_enter"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment