-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Ignore layer tap interrupts #10409
Ignore layer tap interrupts #10409
Conversation
Looks like you actually want the |
# ifdef IGNORE_LAYER_TAP_INTERRUPT | ||
if ( | ||
# ifdef IGNORE_MOD_TAP_INTERRUPT_PER_KEY | ||
!get_ignore_mod_tap_interrupt(get_event_keycode(record->event, false), record) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a fan of this using the same function here. Would prefer a different function or a generic name for both.
The logic here seems to be reversed from For mod-tap defining For layer-tap the code in this PR is written so that defining |
Thank you for your contribution! |
Thank you for your contribution! |
Description
This PR adds
IGNORE_LAYER_TAP_INTERRUPT
for layer taps. This is especiallyuseful when combined with
IGNORE_MOD_TAP_INTERRUPT_PER_KEY
.For example, when you want a layer tap like
LT(_FN, KC_F)
to triggerf
instead ofa layer change, but
LT(_RAISE, KC_BSPC)
to change the layer when interrupted.The changes requires
IGNORE_LAYER_TAP_INTERRUPT
to be defined.In case
#define IGNORE_MOD_TAP_INTERRUPT_PER_KEY
is set as well, you'll beable to reuse the
get_ignore_mod_tap_interrupt()
function forlayer taps like this:
Types of Changes
Issues Fixed or Closed by This PR
Checklist