Skip to content

Commit

Permalink
fix: Handle 0xff layers value in ZMK combos parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Mar 28, 2024
1 parent aa658e2 commit 960b406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keymap_drawer/parse/zmk.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _get_combos(self, dts: DeviceTree) -> list[ComboSpec]:
) from err

combo = {"k": parsed_key, "p": key_pos}
if layers := node.get_array("layers"):
if (layers := node.get_array("layers")) and layers[0].lower() != "0xff":
combo["l"] = [self.layer_names[int(layer)] for layer in layers]

# see if combo had additional properties specified in the config, if so merge them in
Expand Down

0 comments on commit 960b406

Please sign in to comment.