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

Fix delayed spacebar in TAP layer when using thumbcombos #22

Open
wants to merge 1 commit into
base: miryoku
Choose a base branch
from

Conversation

luqasn
Copy link

@luqasn luqasn commented Dec 7, 2023

by turning off combos when entering tap layer.

I had this issue where using space in games always felt so delayed on my 34-key Ferris Sweep even though I was using the tap layer and I managed to track it down to the combo handling.

So I added this code to automatically disable and enable combos when entering/leaving the tap layer.
I think this could be useful default behaviour. What do you think?

by turning off combos when entering tap layer
@luqasn
Copy link
Author

luqasn commented Mar 13, 2025

What about this PR? I am still using it on my board an it still makes sense to me

Comment on lines +92 to +100
layer_state_t default_layer_state_set_user(layer_state_t state) {
if (get_highest_layer(state) == U_TAP) {
combo_disable();
} else {
combo_enable();
}

return state;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

U_TAP may not be defined if manna-harbour/miryoku#85 is used to remove or rename the layer.

Wrapping with #if defined (U_TAP) / #endif should deal with that.

@manna-harbour
Copy link
Owner

I agree, that should be the default behaviour. Thanks for the PR!

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

Successfully merging this pull request may close these issues.

2 participants