Replies: 1 comment 1 reply
-
That's great to hear Custom Shift Keys has been useful for your keymap!
Yes, exactly. " Given a #define MT(mod, kc) (QK_MOD_TAP | (((mod)&0x1F) << 8) | ((kc)&0xFF)) So Long story short, given the keycode The good news is that there is a workaround by changing the tap function. In bool process_record_user(uint16_t keycode, keyrecord_t* record) {
if (!process_custom_shift_keys(keycode, record)) { return false; }
switch (keycode) {
case LALT_T(KC_UNDS): // Left alt on hold, KC_UNDS on tap.
if (record->tap.count) { // On tap.
if (record->event.pressed) { // On press.
register_code16(KC_UNDS);
} else { // On release.
unregister_code16(KC_UNDS);
}
return false; // Skip default handling.
}
break;
// Other macros...
}
return true; // Continue default handling.
} Check out MT doesn’t work with this keycode for more examples of using mod-taps with non-basic tapping keycodes. |
Beta Was this translation helpful? Give feedback.
-
I use the custom shift keys in all my layouts. Great feature!
It's great to just use a different shift key
It's great if you want to switch the normal key with the shifted key
You can even enable TM while keeping a normal key and changing the shifted key.
The one thing that I wish it could also do is easily use switch normal key and shifted key AND enable TM. Something like:
This however does not wok. A normal press sends the unshifted version of that key which in this case is
-
.I guess the problem is that
KC_UNDS
is not a basic keycode.So is there a simple way to extend "custom shift keys" to allow this?
I would use this feature for my 'bottom row mod' on the symbol layer (among other things) and it has to work for these keys (removed the irrelevant keys):
Beta Was this translation helpful? Give feedback.
All reactions