0

When using the application switcher triggered by Cmd+Tab, selecting an application does not necessarily bring forward the window of that application. One can however use the Option key. Then, when releasing Cmd+Tab, the window will be brought forward.

I'm using this complex modification (from the repository) in Karabiner to remap Cmd+Tab to Cmd+'. How can I modify this so that Option is inputted upon release of Cmd? Simply adding it as a modifier doesn't work.

  {
                        "description": "Use left_command+;/' to cycle through running          applications (like command+tab).",
        "manipulators": [
                           {
                                "from": {
                                   "key_code": "quote",
                                     "modifiers": {
                                       "mandatory": [
                                           "left_command"
                                        ]
                                   }
                               },
                               "to": [
                                    {
                                         "key_code": "tab",
                                      "modifiers": [
                                            "left_command"
                                        ]
                                   }
                                ],
                               "type": "basic"
                           },
                             {
                                "from": {
                                    "key_code": "semicolon",
                                     "modifiers": {
                                        "mandatory": [
                                            "left_command"
                                       ]
                                    }
                               },
                                 "to": [
                                   {
                                         "key_code": "tab",
                                        "modifiers": [
                                           "left_command",
                                           "left_shift"
                                         ]
                                    }
                                ],
                                 "type": "basic"
                             }
                        ]
                   },

1 Answers1

1

I am not sure how you can do that with vanilla Karabiner.

If you are OK with using Goku, the following snippet I just tested does what you'd expect. In my case, on pressing Fn and holding it, it's just a regular Fn press. If you press and release it does a Cmd+Tab and holds LeftOption pressed, thus bringing forward the minimized application.

For vanilla Karabiner, I would look into adding a to_after_key_up section.

[:fn :fn nil {:alone :!Ctab :afterup :left_option}]
kiiNODA
  • 11
  • 2