mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
[Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#24630)
* [Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#21881) * Apply suggestions from code review Co-authored-by: Nick Brassel <nick@tzarc.org> --------- Co-authored-by: Nebuleon <2391500+Nebuleon@users.noreply.github.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -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 << "PDF(" << +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)) {
|
||||
|
||||
Reference in New Issue
Block a user