Skip to content

Karabiner-Elements (macOS)

banner

Karabiner-Elements is a powerful and stable keyboard customizer for macOS that also can be used to send keyboard shortcuts with your mouse.

  1. In Karabiner-Elements you need to navigate on the left sidebar to ‘Devices’.
  2. Activate ‘Modify events’ for the mouse that you want to use.

    Activate 'Modify events' under 'Devices'
  3. To setup a keyboard shortcut with your mouse, you need to create a ‘Complex Modification’ in Karabiner-Elements.
  4. Setup the shortcut by clicking on ‘Add your own rule’.

    'Add your own rule' under 'Complex Modifications'

Alternatively, copy & paste the example code below to send the keyboard shortcut ‘CTRL + F13’ when pressing the middle mouse button:

{
"description": "Middle Mouse Button sends CTRL + F13",
"manipulators": [
{
"from": { "pointing_button": "button3" },
"to": [
{
"key_code": "f13",
"modifiers": ["control"]
}
],
"type": "basic"
}
]
}