pqrs-org / Karabiner-archived

Karabiner (KeyRemap4MacBook) is a powerful utility for keyboard customization.
https://pqrs.org/osx/karabiner/
The Unlicense
3.82k stars 311 forks source link

escape + modifiers any doesn't get fn #890

Open ghost opened 5 years ago

ghost commented 5 years ago

I'm trying to stop ESC from un-full-screening in Safari

{
  "title": "Stop ESC exiting Safari full-screen",
  "rules": [
    {
      "description": "Map ESC to ⌘. in Safari.",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "escape",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [{
            "key_code": "period",
            "modifiers": "right_command"
          }],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "bundle_identifiers": [
                "^com\\.apple\\.Safari$"
              ]
            }
          ]
        }
      ]
    }
  ]
}

fn + esc still leaves full-screen mode (it isn't re-mapped)

I also tried

"modifiers": {
  "optional": [
    "any",
    "fn"
  ]
}

... didn't make a difference