Centralize OS-specific configuration and modifier mappings in a dedicated config/adapter module and document global declaration files. Motivation: key modifiers (Cmd/Meta/Alt/Option), global shortcuts, and shared types behave differently across platforms; putting the logic in one place avoids inconsistent handling, duplicate OS checks, and brittle startup code.

Rules and how to apply:

Code examples (patterns to follow):

Practical checklist for PRs:

This ensures consistent cross-platform behavior, easier testing and maintenance, and a single place to update OS-specific settings.