global if behavior name starts with 'layer'

This commit is contained in:
tokazio 2023-01-17 21:16:55 +01:00
parent c43c5dbcbc
commit 571557ca28

View file

@ -209,7 +209,7 @@ int zmk_keymap_apply_position_state(uint8_t source, int layer, uint32_t position
LOG_DBG("got locality: BEHAVIOR_LOCALITY_CENTRAL from behavior");
}
if (strncmp(binding.behavior_dev, "layer") == 0) {
if (strncmp(binding.behavior_dev, "layer", 5) == 0) {
behavior_locality locality = BEHAVIOR_LOCALITY_GLOBAL;
LOG_DBG("force locality: BEHAVIOR_LOCALITY_GLOBAL because of a 'layer' behavior");
}