Skip to content

fix: size macro key picker to device's actual macro count - #4

Merged
tcyeee merged 1 commit into
mainfrom
feature/chicago
Aug 24, 2026
Merged

fix: size macro key picker to device's actual macro count#4
tcyeee merged 1 commit into
mainfrom
feature/chicago

Conversation

@tcyeee

@tcyeee tcyeee commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • The 自定义按键 quick-config tab's Macro card listed a hardcoded M0–M15 (16 slots) regardless of what the connected board reports as keyboard.macroCount, unlike Tap Dance which was already kept live.
  • Boards with fewer macro slots exposed clickable phantom keys with no backing storage; boards with more couldn't reach the extra slots from the picker.
  • Added setMacroCount() in keycodes.ts (mirrors the existing setTapDanceCount pattern) and call it from Keyboard.reloadMacros() right after macroCount is known.

Test plan

  • pnpm build
  • pnpm test
  • Manually verify on a real device that the Macro card's tile count matches its actual macro slot count

🤖 Generated with Claude Code

KEYCODES_MACRO was hardcoded to M0-M15 regardless of what the connected
board reports via keyboard.macroCount, unlike Tap Dance which is already
kept in sync. Boards with fewer slots got clickable phantom macro keys
with no backing storage; boards with more couldn't reach the extra slots
from the quick-config picker.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tcyeee
tcyeee merged commit 19570b4 into main Aug 24, 2026
1 check failed
@tcyeee
tcyeee deleted the feature/chicago branch August 24, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant