Only the page number key follows the ALL button; UP and DOWN are normal again.

New config setting nav_keys (now ["pagenum"]) picks which nav keys are
coloured; nav_keys.py restores the built-in key for any kind not listed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 09:44:03 -04:00
co-authored by Claude Opus 5.5
parent 3118cdc281
commit 1da404c299
6 changed files with 32 additions and 210 deletions
+2 -1
View File
@@ -162,8 +162,9 @@ def nav_key(kind, names):
def build(cfg):
controls = {}
coloured = cfg.get("nav_keys", list(NAV_LOCATIONS)) # which nav keys follow the ALL button
for kind, (r, c) in NAV_LOCATIONS.items():
controls.setdefault(r, {})[c] = nav_key(kind, cfg["variables"])
controls.setdefault(r, {})[c] = nav_key(kind, cfg["variables"]) if kind in coloured else {"type": kind}
for tile in cfg["tiles"]:
if "pos" not in tile:
continue