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

Some keys are not registered in a layer with modifier #3767

Open
beaverkiria opened this issue Mar 31, 2024 · 0 comments
Open

Some keys are not registered in a layer with modifier #3767

beaverkiria opened this issue Mar 31, 2024 · 0 comments

Comments

@beaverkiria
Copy link

Hey there!

I'm trying to use homerow mods via space layer and I noticed that some keys are not registered with layer enabled. For example, no events are registered when I press spacebar + a to enable left_control and then press h key, although it works for every other key.

Here is my short test karabiner configuration that reproduces the problem.

{
  "profiles": [
    {
      "name": "--dry-run",
      "complex_modifications": {
        "rules": [
          {
            "description": "Layer - space_layer",
            "manipulators": [
              {
                "type": "basic",
                "from": {
                  "key_code": "spacebar",
                  "modifiers": {
                    "optional": [
                      "any"
                    ]
                  }
                },
                "to": [
                  {
                    "set_variable": {
                      "name": "space_layer",
                      "value": 1
                    }
                  }
                ],
                "to_after_key_up": [
                  {
                    "set_variable": {
                      "name": "space_layer",
                      "value": 0
                    }
                  }
                ],
                "to_if_alone": [
                  {
                    "key_code": "spacebar"
                  }
                ]
              },
              {
                "type": "basic",
                "from": {
                  "key_code": "a",
                  "modifiers": {
                    "optional": [
                      "any"
                    ]
                  }
                },
                "to": [
                  {
                    "key_code": "left_control"
                  }
                ],
                "conditions": [
                  {
                    "type": "variable_if",
                    "name": "space_layer",
                    "value": 1
                  }
                ]
              }
            ]
          }
        ],
        "parameters": {
          "basic.to_if_alone_timeout_milliseconds": 1000,
          "basic.to_if_held_down_threshold_milliseconds": 500,
          "basic.to_delayed_action_delay_milliseconds": 500,
          "basic.simultaneous_threshold_milliseconds": 50,
          "mouse_motion_to_scroll.speed": 100
        }
      }
    }
  ]
}
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

1 participant