pqrs-org / Karabiner-archived

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

Issue with "frontmost_application_if" condition #867

Open padraic00 opened 6 years ago

padraic00 commented 6 years ago

Hi,

I have a mac and would like to swap the functionality of fn and left_control only when using GUI Emacs or iTerm2. I've attached the list of rules under complex modifications.

Is there anywhere else I should be looking for failing complex modifications?

"rules": [
                    {
                        "conditions": [
                            {
                                "bundle_identifiers": [
                                    "^org\\.gnu\\.Emacs$",
                                    "^com\\.googlecode\\.iterm2$"
                                ],
                                "type": "frontmost_application_if"
                            }
                        ],
                        "from": {
                            "key_code": "left_control"
                        },
                        "to": {
                            "key_code": "fn"
                        },
                        "type": "basic"
                    },
                    {
                        "conditions": [
                            {
                                "bundle_identifiers": [
                                    "^org\\.gnu\\.Emacs$",
                                    "^com\\.googlecode\\.iterm2$"
                                ],
                                "type": "frontmost_application_if"
                            }
                        ],
                        "from": {
                            "key_code": "fn"
                        },
                        "to": {
                            "key_code": "left_control"
                        },
                        "type": "basic"
                    }
                ]