summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/python/qmk/cli/generate/keycodes.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/qmk/cli/generate/keycodes.py b/lib/python/qmk/cli/generate/keycodes.py
index cf80689708..2ed84cd589 100644
--- a/lib/python/qmk/cli/generate/keycodes.py
+++ b/lib/python/qmk/cli/generate/keycodes.py
@@ -91,9 +91,10 @@ def _generate_aliases(lines, keycodes):
for key, value in keycodes["aliases"].items():
define = _render_key(value.get("key"))
val = _render_key(key)
- label = _render_label(value.get("label"))
-
- lines.append(f'#define {define} {val} // {label}')
+ if 'label' in value:
+ lines.append(f'#define {define} {val} // {_render_label(value.get("label"))}')
+ else:
+ lines.append(f'#define {define} {val}')
lines.append('')
for key, value in keycodes["aliases"].items():