Build a keyboard shortcut recorder with Tailwind CSS: a button that enters recording mode and captures the next real key combination, rendering it as styled key caps (⌘ + Shift + K); require at least one non-modifier key, refuse bare modifiers, and display the captured combo as text for copy. Check the combo against existing shortcuts and flag conflicts with an inline warning naming the conflicting action, offer a rebind-or-cancel choice, and announce recording state to screen readers via aria-live.
提示词保持英文原文——直接粘贴进 Claude、Cursor、v0 或任何 AI 编程工具即可使用。