Skip to content

Add Windows keystroke transformation support#339

Open
nikborovets wants to merge 4 commits intokeycastr:mainfrom
nikborovets:win-equivalent
Open

Add Windows keystroke transformation support#339
nikborovets wants to merge 4 commits intokeycastr:mainfrom
nikborovets:win-equivalent

Conversation

@nikborovets
Copy link
Copy Markdown

Enhance KCEventTransformer to include a method for transforming keystrokes to their Windows equivalents. Update KCDefaultVisualizer to display both macOS and Windows keystroke representations when applicable.

This pull request enhances the keystroke visualization by displaying both macOS and Windows-style shortcut representations when appropriate. The main focus is on providing users with an immediate reference for cross-platform keyboard shortcuts, particularly when modifier keys are involved.

Cross-platform shortcut display improvements:

  • Added logic in KCDefaultVisualizer.m to display both the macOS and Windows-style shortcut strings side-by-side when a keystroke includes Command, Control, or Option modifiers, helping users see equivalent shortcuts at a glance.
  • Introduced a new method transformedValueForWindows: in KCEventTransformer to generate Windows-style shortcut strings based on the keystroke's modifier flags and key code. [1] [2]
  • Updated imports in KCDefaultVisualizer.m to include the new KCEventTransformer dependency.
Screenshot 2026-02-19 at 21 39 24 Screenshot 2026-02-19 at 21 40 19 Screenshot 2026-02-19 at 21 42 43 Screenshot 2026-02-19 at 21 40 41 Screenshot 2026-02-19 at 21 40 46

nikborovets and others added 4 commits February 19, 2026 16:20
Enhance KCEventTransformer to include a method for transforming keystrokes to their Windows equivalents. Update KCDefaultVisualizer to display both macOS and Windows keystroke representations when applicable.
Implemented a user preference to display Windows equivalent keystrokes alongside macOS keystrokes in both KCDefaultVisualizer and SvelteVisualizer. Updated relevant UI components and user defaults to support this feature.

Co-authored-by: Cursor <cursoragent@cursor.com>
…and SvelteVisualizer

Updated user defaults to turn off the option for displaying Windows equivalent keystrokes in both visualizers, aligning with user preferences.
Updated the condition for displaying Windows equivalent keystrokes to require Command, Control, or Option modifiers, while excluding Shift. This change aligns with user feedback to avoid duplicating simple letter inputs.
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