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

Bug: Groups of simultanous keys kills repeat rate #161

Open
kbilsted opened this issue Jul 17, 2024 · 4 comments
Open

Bug: Groups of simultanous keys kills repeat rate #161

kbilsted opened this issue Jul 17, 2024 · 4 comments

Comments

@kbilsted
Copy link
Contributor

Not sure if this is a bug. But here goes

Using the configuration

AltLeft{H}	        >> ArrowLeft
AltLeft{J}	        >> ArrowDown

everything works nicely. I can hold down the keys and they repeat like the cursor keys do.

When I add a group selector

(J K) 		>> TO_NORMAL

then the repeat of J is no longer firing

@kbilsted kbilsted changed the title Groups kills repeat rate Bug: Groups of simultanous keys kills repeat rate Jul 17, 2024
@houmain
Copy link
Owner

houmain commented Jul 17, 2024

No, this is not a bug. It waits whether the K follows or not. It starts repeating as soon as you also press the 'K'.
You could try !AltLeft (J K) >> TO_NORMAL or the recently added ?, which makes it skip the mapping as long as it does not match completely: ? (J K) >> TO_NORMAL

@kbilsted
Copy link
Contributor Author

Great thanks for the quick reply. Would it be best practice to prefix ? to all definitions?
When wouldn't this be a good idea?

@kbilsted
Copy link
Contributor Author

ok that was a bad idea using ? it spins keymapper out of control using nearly all cpu and eating 2-3 MB ram a second

image

@houmain
Copy link
Owner

houmain commented Jul 18, 2024

Thanks, this should be fixed in 4.4.5.

Would it be best practice to prefix ? to all definitions?

While ? (J K) immediately outputs J or K when one is pressed alone, (J K) does not. So it depends on your usecase.

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