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
Created new platform.ts utility module that detects the platform via window.electronWindow?.platform and exports a metaKey constant that resolves to "⌘" on macOS and "Ctrl" on other platforms
Updated keyboard hint displays in text-editor.tsx to use the dynamic metaKey variable instead of hardcoded "⌘" symbol for both ⌘+Enter and ⌘+M shortcuts
Updated keyboard hint display in configure-stream-step.tsx to use the dynamic metaKey variable for the ⌘+Enter shortcut
Implementation Details
The platform detection leverages the Electron window object's platform property, which is set to "darwin" on macOS
The metaKey constant is exported from a centralized location to ensure consistency across all keyboard hint displays
This change improves UX for Windows and Linux users by showing the correct modifier key for their platform
## 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
- Created new `platform.ts` utility module that detects the platform via `window.electronWindow?.platform` and exports a `metaKey` constant that resolves to "⌘" on macOS and "Ctrl" on other platforms
- Updated keyboard hint displays in `text-editor.tsx` to use the dynamic `metaKey` variable instead of hardcoded "⌘" symbol for both ⌘+Enter and ⌘+M shortcuts
- Updated keyboard hint display in `configure-stream-step.tsx` to use the dynamic `metaKey` variable for the ⌘+Enter shortcut
## Implementation Details
- The platform detection leverages the Electron window object's platform property, which is set to "darwin" on macOS
- The `metaKey` constant is exported from a centralized location to ensure consistency across all keyboard hint displays
- This change improves UX for Windows and Linux users by showing the correct modifier key for their platform
https://claude.ai/code/session_01YZY4wUqACT7mgibHr2Yncx
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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