Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Add hotkey reset logic to avoid stuck keys #28

Merged
merged 2 commits into from
Aug 1, 2024
Merged

Conversation

haydenmc
Copy link
Owner

@haydenmc haydenmc commented Aug 1, 2024

Occasionally, the hotkey management logic would get "stuck" thinking a key is pressed when it isn't.

This can happen if keyboard events are prevented from reaching the FlashCom process for a variety of reasons (ex. if the user invokes the lock screen with Win+L, the key-up event for the Win key will not reach FlashCom).

This change adds a hotkey reset timer that resets all hotkey state after 1 second of inactivity. The timer is reset each time a new hotkey key is pressed. This will prevent FlashCom from maintaining a bad keyboard state, even if keyboard events are interrupted.

This change also bumps the version to 0.2.1.

@haydenmc haydenmc merged commit fb3500b into main Aug 1, 2024
1 check passed
@haydenmc haydenmc deleted the hotkey-reset-timer branch August 1, 2024 03:16
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