mirror of
https://github.com/keycastr/keycastr.git
synced 2026-05-15 14:15:50 -06:00
[PR #343] feat: show modifier-only keypresses in visualizer #342
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#342
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/343
Author: @quiet-node
Created: 4/10/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (1)
196459ffeat: show modifier-only keypresses in visualizer📊 Changes
2 files changed (+26 additions, -1 deletions)
View changed files
📝
keycastr/KCDefaultVisualizer.h(+2 -0)📝
keycastr/KCDefaultVisualizer.m(+24 -1)📄 Description
Problem
Pressing a modifier key alone (⌘, ⇧, ⌥, ⌃) showed nothing. Only combos like ⌘E worked.
This is because macOS fires
kCGEventFlagsChangedfor modifier-only presses instead ofkCGEventKeyDown. KeyCastr already captured these events butnoteFlagsChanged:was a no-op.Fix
Implement
noteFlagsChanged:to detect newly pressed modifiers and display their glyphs. Respects the existing "Command Keys Only" display mode.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.