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

Disable manipulator for key combination? #1716

Open
austengary33 opened this issue Sep 15, 2024 · 1 comment
Open

Disable manipulator for key combination? #1716

austengary33 opened this issue Sep 15, 2024 · 1 comment

Comments

@austengary33
Copy link

I have the following rule:

Can I change it so when I hit left command & tab in macOS, that doesn't get switched?

{
"description": "Swap command and control",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"com\.microsoft\.rdc\.mac",
"com\.ericom\.blazeclient",
"^com\.carriez\.rustdesk$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "left_control",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "left_command" }],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"com\.microsoft\.rdc\.mac",
"com\.ericom\.blazeclient",
"^com\.carriez\.rustdesk$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "left_command",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "left_control" }],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"com\.microsoft\.rdc\.mac",
"com\.ericom\.blazeclient",
"^com\.carriez\.rustdesk$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "right_control",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "right_command" }],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"com\.microsoft\.rdc\.mac",
"com\.ericom\.blazeclient",
"^com\.carriez\.rustdesk$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "right_command",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "right_control" }],
"type": "basic"
}
]
}

@NoctuaCode
Copy link
Collaborator

Did you try adding a rule like this one ?

{
    "description": "Force Command + Tab",
    "manipulators": [
        {
            "from": {
                "key_code": "tab",
                "modifiers": {
                    "mandatory": ["command"],
                    "optional": ["left_shift"]
                }
            },
            "to": [
                {
                    "key_code": "tab",
                    "modifiers": ["left_command"]
                }
            ],
            "type": "basic"
        }
    ]
}

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

No branches or pull requests

2 participants