summaryrefslogtreecommitdiffstats
path: root/config/karabiner/assets/complex_modifications/command-escape.json
blob: 03c616767f3436d489a8cc003fe9f15cc46cda73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  "title": "Map Command to Escape when pressed alone",
  "rules": [
    {
      "manipulators": [
        {
          "description": "Map left command to escape",
          "type": "basic",
          "from": {
            "key_code": "left_command",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_command",
              "lazy": true
            }
          ],
          "to_if_alone": [
            {
              "key_code": "escape"
            }
          ]
        }
      ]
    }
  ]
}