0

To map the application key to right-click using Karabiner-Elements one can use:

"simple_modifications": [
    {
        "from": {
            "key_code": "application"
        },
        "to": {
            "pointing_button": "button2"
        }
    },

However, this will perform a right-click at the position of the mouse pointer. I want it to move the pointer to the position of the caret and then perform the right-click.
Presumably, to do this I need to use "complex_modifications" rule.
My main problem is I don't know how to change the mouse pointer position to the caret position. Using AutoHotkey there's an answer here https://stackoverflow.com/questions/41206243/moving-the-mouse-pointer-to-the-cursor
I can't say I really understand the answer there but anyway I'm looking to do this with Karabiner-Elements

1

You need to remap to shift + f10 instead, for example:

"from": {
    "key_code": "right_option"
},
"to": [
    {
        "key_code": "f10",
        "modifiers": [
            "left_shift"
        ]
    }
]
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .