mirror of
https://github.com/keycastr/keycastr.git
synced 2026-05-15 14:15:50 -06:00
[GH-ISSUE #72] Phantom Keystrokes Emitted After Closing KeyCastr #58
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#58
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?
Originally created by @sdeken on GitHub (Oct 10, 2016).
Original GitHub issue: https://github.com/keycastr/keycastr/issues/72
Looks like there's an issue in which keystrokes are being "held" by KeyCastr and broadcast into other applications when shutting KeyCastr down.
To recreate:
Expected Result: KeyCastr shuts down and the empty note in Notes is still empty.
Actual Result: The gibberish that was typed (some, but not all) is put into the empty note.
This appears to be caused by the initial keyboard tap that we create to check whether or not we can listen for the kCGEventKeyDown event. If we skip this check, the problem goes away.
@akitchen commented on GitHub (Dec 11, 2020):
Changes on master in pursuit of v0.9.9 / #182 seem to have fixed this, mostly. It's down to one or two ghost keystrokes, from "many" (which I have also observed many times 😞)
I suspect
[NSApp activateIgnoringOtherApps:YES];may be the culprit, but more testing is needed!@akitchen commented on GitHub (Dec 14, 2020):
Hmm, maybe it's not fixed after all, I'm still seeing this behavior in some circumstances and it's not clear why.
@ghost commented on GitHub (Sep 16, 2024):
The issue is still here and, from my experience, it's been present for as long as I've been using KeyCastr.
No special steps needed to replicate on my end:
Attaching a video with the replication.
One weird thing though is that it never seems to repeat the very first keystroke 🤔
https://github.com/user-attachments/assets/568854c6-e75d-4fcf-b864-66de7da2c311