diff options
author | Joel Challis <git@zvecr.com> | 2024-11-23 10:09:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-23 10:09:34 +0000 |
commit | 4a5bae51cd1f2cbca0ab8c8ae6e15262f8dc5a68 (patch) | |
tree | 6dedf92beaa32ddd33476aec43c856f6a37901ed /tests/test_common/keycode_util.cpp | |
parent | 9e9b4acbde48acbe51fb9ff198be5dce49608ee9 (diff) |
[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>
Diffstat (limited to 'tests/test_common/keycode_util.cpp')
-rw-r--r-- | tests/test_common/keycode_util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_common/keycode_util.cpp b/tests/test_common/keycode_util.cpp index 9f88d40ec7..539cab819a 100644 --- a/tests/test_common/keycode_util.cpp +++ b/tests/test_common/keycode_util.cpp @@ -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)) { |