Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ctrl-click to Command-click mapping to default list #3887

Open
elcreator opened this issue Aug 6, 2024 · 2 comments
Open

Add Ctrl-click to Command-click mapping to default list #3887

elcreator opened this issue Aug 6, 2024 · 2 comments

Comments

@elcreator
Copy link

It's useful for developers using both Windows and MacOS with the same keyboard.
Ctrl-click is common "Go to definition" shortcut but in MacOS it also opens a context menu as MacOS treats it as secondary click.
To avoid this I use the next basic modifier:

{
    "description": "ctrl+left click to command+left click",
    "manipulators": [
        {
            "from": {
                "modifiers": {
                    "mandatory": [
                        "control"
                    ]
                },
                "pointing_button": "button1"
            },
            "to": [
                {
                    "modifiers": [
                        "command"
                    ],
                    "pointing_button": "button1"
                }
            ],
            "type": "basic"
        }
    ]
}

and default IDE behaviour which recognises Command-Click.

@raxigan
Copy link

raxigan commented Aug 13, 2024

I assume this would work only on a non-Apple mouse (so not magic mouse and touchpad), since KE does not support Apple pointing devices.

@elcreator
Copy link
Author

I use it with KVM switching my non-Apple mouse and keyboard between Windows and MacOS on KE installed on MacOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants