Skip to content

Which keys are pressed during the Alt+Tab Swapper action #86

Closed

Description

@ziombo

I believe I'm using a slightly older implementation than what you currently have, but the new one seems to be just a wrapper.

Mine

ZMK_BEHAVIOR(swapper, tri_state,
    bindings = <&kt LALT>, <&kp TAB>, <&kt LALT>;
    ignored-key-positions = <LT2>;
)

Current

ZMK_TRI_STATE(swapper,
    bindings = <&kt LALT>, <&kp TAB>, <&kt LALT>;
    ignored-key-positions = <LT2>;
)

I'm wondering what exactly happens in terms of keypresses when I trigger the above. I'm asking because I recently started using Parsec (remote desktop, but for gaming so the latency and quality are great) to connect to my work laptop and it has an 'Immersed' mode in which even the alt+tab action is passed into the remote machine. In other words when pressing alt+tab instead of switching from Parsec window to the next one on my local pc, I can switch between programs on my work laptop to which I'm connected. Using alt+tab directly works without issues.

However there seems to be an issue when using the swapper. The first time I press the swapper key it doesn't trigger alt+tab inside parsec and instead a normal Tab is received. The second time I do it it works as expected. So that's why I'm asking about the swagger's course of action and keypresses. Also holding down the swapper key will result in a Tab keypress and then switching windows.

Based on the config <&kt LALT>, <&kp TAB>, <&kt LALT> will toggle LALT, then press TAB and then release LALT? Would you have any ideas why would the first press be registered as just Tab?

Activity

  1. Repository owner locked and limited conversation to collaborators on Dec 15, 2024
  2. converted this issue into a discussion #87 on Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions