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

Repeat key and timeout #19

Open
anderso opened this issue Sep 8, 2024 · 2 comments
Open

Repeat key and timeout #19

anderso opened this issue Sep 8, 2024 · 2 comments

Comments

@anderso
Copy link

anderso commented Sep 8, 2024

I have found that the repeat key does not interact well with sm_td because if i tap it too soon after an SMTD key it won't do anything.

I type for example "see" by tapping S E QK_REP. And if E is an SMTD key, then rolling from E to QK_REP won't work, but if I pause for a bit, it works.

Are there any workarounds for this?

@anderso
Copy link
Author

anderso commented Sep 8, 2024

I'm guessing I can work around this by registering the key during SMTD_ACTION_TOUCH and hooking into the repeat functionality to retrieve it later. That won't do the right thing if it later resolves to the hold action though. Or maybe queue up the repeat action if I detect that the previous key was an SMTD key, to handle it later in SMTD_ACTION_TAP.

@stasmarkin
Copy link
Owner

Sorry for the wait, I had a busy week.
I think you could include process_repeat_key.h and call remember_last_key_user() function in SMTD_ACTION_TOUCH manually. This is the fastest workaround I can give you for 0.4.0 version of sm_td.
I'm making the next version of sm_td which will be architecturally improved and I believe QK_REP will work there automatically. But anyway, I've added this issue to my backlog, so I'll try to support this as much as possible.

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