[Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#21881)

This commit is contained in:
Nebuleon 2024-11-22 06:19:11 -05:00 • committed by GitHub
commit 979549096e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 92 additions and 2 deletions

View file

@ -94,6 +94,8 @@ std::string generate_identifier(uint16_t kc) {
s << "MO(" << +QK_MOMENTARY_GET_LAYER(kc) << ")";
} else if (IS_QK_DEF_LAYER(kc)) {
s << "DF(" << +QK_DEF_LAYER_GET_LAYER(kc) << ")";
} else if (IS_QK_PERSISTENT_DEF_LAYER(kc)) {
s << "PD(" << +QK_PERSISTENT_DEF_LAYER_GET_LAYER(kc) << ")";
} else if (IS_QK_TOGGLE_LAYER(kc)) {
s << "TG(" << +QK_TOGGLE_LAYER_GET_LAYER(kc) << ")";
} else if (IS_QK_LAYER_TAP_TOGGLE(kc)) {