Use platform-specific meta key in keyboard hints #168
Reference in New Issue
Block a user
Delete Branch "claude/platform-detection-meta-key-7EoBP"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Updated keyboard hints throughout the application to display the correct modifier key based on the platform (⌘ for macOS, Ctrl for Windows/Linux) instead of hardcoding the macOS symbol.
Changes
platform.tsutility module that detects the platform viawindow.electronWindow?.platformand exports ametaKeyconstant that resolves to "⌘" on macOS and "Ctrl" on other platformstext-editor.tsxto use the dynamicmetaKeyvariable instead of hardcoded "⌘" symbol for both ⌘+Enter and ⌘+M shortcutsconfigure-stream-step.tsxto use the dynamicmetaKeyvariable for the ⌘+Enter shortcutImplementation Details
metaKeyconstant is exported from a centralized location to ensure consistency across all keyboard hint displayshttps://claude.ai/code/session_01YZY4wUqACT7mgibHr2Yncx