Karabiner-elements: Is remapping left-click while a modifier key is held down to another mouse button supported?

Created on 2 Jan 2018  路  3Comments  路  Source: pqrs-org/Karabiner-Elements

Hi, I have added this JSON as a custom complex modification, but it doesn't appear to do anything using the latest beta (11.5.0).

{
  "title": "fn+left-click to middle-click",
  "rules": [
    {
      "description": "When the left mouse button is clicked while fn is held down, post a middle click.",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "pointing_button": "button1",
            "modifiers": {
              "mandatory": [
                "fn"
              ]
            }
          },
          "to": [
            {
              "pointing_button": "button3"
            }
          ]
        }
      ]
    }
  ]
}

Is there something wrong with the JSON, or does Karabiner not support doing this yet? If I change the "from" section to just

"key_code": "fn"

it works, but I'd much rather have the fn key act as a modifier key.

Thanks for any help anyone is able to provide!

stale

Most helpful comment

The checkboxes for enabling both my internal trackpad and external Magic Trackpad are disabled. That would be why it's not working! Is there a way to enable button remapping for the Apple trackpads, or is that not possible?
screen shot

All 3 comments

Did you enable your mouse on Devices tab?
https://pqrs.org/osx/karabiner/help.html#mouse-button

The checkboxes for enabling both my internal trackpad and external Magic Trackpad are disabled. That would be why it's not working! Is there a way to enable button remapping for the Apple trackpads, or is that not possible?
screen shot

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings