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

Tap dance with &mt doesn't interrupt as expected on key press #1672

Open
yanshay opened this issue Feb 20, 2023 · 1 comment
Open

Tap dance with &mt doesn't interrupt as expected on key press #1672

yanshay opened this issue Feb 20, 2023 · 1 comment

Comments

@yanshay
Copy link

yanshay commented Feb 20, 2023

I'm trying to achieve a key where hold would be shift, single tap tab and double tap right.
I used the advanced example in the documentation for tap-dance for that

        shft_tab_rgt: tap_dance_mod_tap {
        compatible = "zmk,behavior-tap-dance";
        label = "SHIFT-TAB-RIGHT";
        #binding-cells = <0>;
        tapping-term-ms = <200>;
        bindings = <&mt LSHIFT TAB>, <&kp RIGHT>;
    };

It sort of works, but when pressing the key and quickly after another key it doesn't interrupt with the hold of the LSHIFT but rather just issues the key I pressed as it.
How can I make it work so when the key interrupts, it interrupts internally the &mt like it does with the &mt is used alone?

@yanshay yanshay changed the title Tap Tap dance with &mt doesn't interrupt on key press Feb 20, 2023
@yanshay yanshay changed the title Tap dance with &mt doesn't interrupt on key press Tap dance with &mt doesn't interrupt as expected on key press Feb 20, 2023
@yanshay
Copy link
Author

yanshay commented Mar 13, 2023

Checked, and this is solved by moving behavior_hold_tap below behavior_tap_dance in CMakeLists.txt
Not sure if there are other implications though.

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

No branches or pull requests

2 participants