{ 
  "title": "ipatch, ke, local complex modification",
  "maintainer": [
    "ipatch"
  ],
  "rules": [
    {
      "NOTE": "from key must be a JSON object NOT arrary",
      "NOTE2": "see README to obtain bundle identifer",
      "description": "ipatch, messages.app, cmd+j cmd+k, for next and prev conversation",
      "manipulators": [
        {
          "type": "basic",
          "from": 
          {
            "key_code": "j",
            "modifiers": {
              "mandatory": [ 
                "left_command"
              ]
            }
          }, 
          "to": [
            {
              "key_code": "tab",
              "modifiers": [
                "left_control"
              ]
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Applications/Messages.app/Contents/MacOS/Messages"
              ],
              "bundle_identifiers": [
                "com.apple.iChat"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": 
          {
            "key_code": "k",
            "modifiers": {
              "mandatory": [ 
                "left_command"
              ]
            }
          }, 
          "to": [
            {
              "key_code": "tab",
              "modifiers": [
                "left_control",
                "shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Applications/Messages.app/Contents/MacOS/Messages"
              ],
              "bundle_identifiers": [
                "com.apple.iChat"
              ]
            }
          ]
        }

      ]
    }
  ]
}
