Skip to content

How to press two keys at once and send Enter similar to karabiner #128

Description

@hdecoded

Hi @cajhin ,

Thanks for the great tool. I am loving the flexibility the offers.

I'm trying to replicate the following Karabiner-Elements configuration on Windows using capsicain:

{
  "description": "Simultaneous keys",
  "manipulators": [
    {
      "from": {
        "modifiers": { "optional": ["any"] },
        "simultaneous": [
          { "key_code": "k" },
          { "key_code": "j" }
        ],
        "simultaneous_options": {
          "detect_key_down_uninterruptedly": false,
          "key_down_order": "insensitive",
          "key_up_order": "insensitive",
          "key_up_when": "any"
        }
      },
      "to": [{ "key_code": "return_or_enter" }],
      "type": "basic"
    }
  ]
}

This setup allows the simultaneous press of k and j (regardless of order or interruption) to send the Enter key.

On Windows, I'm trying to replicate my Karabiner setup using tools like Capsicain and AutoHotKey (AHK), but I've run into a few limitations.

AHK doesn't support true simultaneous key detection, and while I managed to approximate it with the below code, the keys often get dropped when typing quickly due to input delays.

k::Send "k"
j::Send "j"

k & j::Send "{Enter}"
j & k::Send "{Enter}"

I've gone through the Capsicain documentation but mostly found examples involving modifier keys. I'm specifically looking to trigger actions with simultaneous letter key combos (e.g., J + K → Enter). I did notice an example in the README: F and J to Shift. Is this the same mechanism I’d use for letter-only combos,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions