mirror of
https://github.com/keycastr/keycastr.git
synced 2026-05-15 14:15:50 -06:00
[PR #339] Add Windows keystroke transformation support #338
Labels
No labels
bug
compatibility
discussion
documentation
enhancement
help wanted
help wanted
investigation needed
pull-request
release
visualizer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/keycastr#338
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/keycastr/keycastr/pull/339
Author: @nikborovets
Created: 2/19/2026
Status: 🔄 Open
Base:
main← Head:win-equivalent📝 Commits (4)
9e760bfAdd Windows keystroke transformation supportb9ef958Add option to show Windows equivalent keystrokes in visualizersd6e2755Disable Windows equivalent keystrokes display in KCDefaultVisualizer and SvelteVisualizercce31c2Refine Windows keystroke display logic in KCEventTransformer📊 Changes
9 files changed (+143 additions, -37 deletions)
View changed files
📝
keycastr/KCDefaultVisualizer.m(+14 -1)📝
keycastr/KCDefaultVisualizer.nib/designable.nib(+32 -19)📝
keycastr/KCDefaultVisualizer.nib/keyedobjects.nib(+0 -0)📝
keycastr/KCEventTransformer.h(+2 -0)📝
keycastr/KCEventTransformer.m(+43 -0)📝
keycastr/Svelte.nib/designable.nib(+19 -6)📝
keycastr/Svelte.nib/keyedobjects.nib(+0 -0)📝
keycastr/SvelteVisualizer.h(+2 -0)📝
keycastr/SvelteVisualizer.m(+31 -11)📄 Description
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:
KCDefaultVisualizer.mto 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.transformedValueForWindows:inKCEventTransformerto generate Windows-style shortcut strings based on the keystroke's modifier flags and key code. [1] [2]KCDefaultVisualizer.mto include the newKCEventTransformerdependency.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.