mirror of
https://github.com/keycastr/keycastr.git
synced 2026-05-15 14:15:50 -06:00
[PR #329] [MERGED] fix: uppercase characters when Option modifier is pressed #336
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#336
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/329
Author: @Hephaest
Created: 6/27/2025
Status: ✅ Merged
Merged: 8/3/2025
Merged by: @akitchen
Base:
main← Head:main📝 Commits (3)
1155a92fix: uppercase characters when Option modifier is pressed2819a42test: create unit test cases for KCEventTransformer62dcaf7test: update test case & change option key handlings📊 Changes
2 files changed (+4 additions, -4 deletions)
View changed files
📝
keycastr/KCEventTransformer.m(+2 -2)📝
keycastr/KCVisualizerTests/KCKeystrokeConversionTests.m(+2 -2)📄 Description
Description
When pressing Option+character (e.g., Option+L), the displayed keystroke was showing lowercase characters (⌥l) while Command+character correctly showed uppercase (⌘L).
https://github.com/user-attachments/assets/98ec19b4-4d23-4d7f-a151-1850a02d4800
Changlog
The fix updates the condition to include the Option modifier flag, ensuring consistent behavior across all modifier keys.
Root Cause
This bug seems to be caused by the
isCommandflag only checking for Control and Command modifiers, but not Option.Demo
https://github.com/user-attachments/assets/be471143-c86f-40cd-8907-f02870412a8f
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.