Skip to content

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

Answered by urob
ziombo asked this question in Q&A
Discussion options

You must be logged in to vote

Yea, that looks a bit weird. Effectively you are getting:

  • Press LALT when the behavior is first invoked
  • Press LALT again and then release it on every subsequent behavior tap
  • Release LALT when the behavior is released.

I think the other approach to delay the tap might be more promising. The problem is that afaik wait-ms only operates in between macro actions. Not sure if there is a more elegant way but you could try adding a dummy event at the beginning to get around that. Maybe something like this works?

ZMK_BEHAVIOR(delayed_tab, macro,
    wait-ms = <500>;
    tap-ms = <5>;
    bindings = <&none &kp TAB>;
)

// Alt+Tab swapper, requires PR #1366
ZMK_BEHAVIOR(swapper, tri_state,
    bin…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@urob
Comment options

urob Dec 15, 2024
Maintainer

@ziombo
Comment options

@ziombo
Comment options

@urob
Comment options

urob Dec 17, 2024
Maintainer

Answer selected by ziombo
@ziombo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #86 on December 15, 2024 02:21.