Skip to content

What is the best way to put Layer Lock on a mod-tap? #52

Answered by getreuer
Dimagog asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the great question! You're right, it's natural to want to combine Layer Lock with some other function on hold.

That's a slick workaround you made with that conditional arg record->tap.count > 0 ? MT(MOD_LCTL, KC_F17) : NOT_USED. This makes sense. If you like, you could use the existing KC_NO keycode for the purpose of NOT_USED.

Another option I've considered was to process MT(MOD_LCTL, KC_F17) myself and to recursively call process_record with a synthetic record for LLOCK, but I'm not sure such re-enterancy is supported/encouraged/tolerated by QMK.

Yes, I've struggled a fair bit with this approach in Achordion and Repeat Key and have some comments about it. Recursively cal…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by getreuer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants