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

Repetitive keycode sending whilst modifier key is held #9

Open
7kilobytes opened this issue Aug 31, 2024 · 2 comments
Open

Repetitive keycode sending whilst modifier key is held #9

7kilobytes opened this issue Aug 31, 2024 · 2 comments

Comments

@7kilobytes
Copy link

First of all I would like to thank you for the fantastic library <3

However, I have faced with the following issue:
I am Colemak user and have LCTRL and RCTRL modifiers on the T and N keys (F and J in QWERTY) accordingly on the home row. When I hold the LCTRL key and then hold N key I expect that CTRL + N is send repeatedly but nothing happens. Is it possible to implement described behavior?

Thank you in advance.

@stasmarkin
Copy link
Owner

@7kilobytes

When I hold the LCTRL key and then hold N

When you hold N it is also interpreted as hold action, so you get LCTRL + RCTRL held.

When you hold N, it is also interpreted as a hold action, so you get LCTRL + RCTRL held.

To work around this, I've added threshold' for macros. Have a look at the extended version SMTD_MT(macro_key, tap_key, modifier, threshold)https://github.com/stasmarkin/sm_td/wiki/2.1:-Customization-guide:-Examples For example, by definingSMTD_LT(CKC_N, KC_N, RCTRL, 1)` there will be such behavior:

  • if you hold T and then hold N, LCTRL + RCTRL will be held
  • If you hold T and then tap N and hold N, LCTRL + N will be tapped once and then LCTRL + N will be held unless you release an N key.

So, this threshold param defines how many subsequent taps should appear to interpret that a key is being held instead of a modifier.

@7kilobytes
Copy link
Author

Awesome! Thank you very much

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

2 participants