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

Macros reset unreleased keys #1025

Merged
merged 2 commits into from
Jan 1, 2025
Merged

Macros reset unreleased keys #1025

merged 2 commits into from
Jan 1, 2025

Conversation

sezanzeb
Copy link
Owner

@sezanzeb sezanzeb commented Dec 28, 2024

When a macro like key_down(Shift_L) is used, and the injection stops, Shift would keep pressing down, rendering all attempts to interact with the system useless.

When an injection is stopped, the macro handler will now reset all pressed keys. If the gui isn't open to stop an injection, unplugging the input device will cause those keys to be reset as well.

Previously, I added the inputremapperpanicquit codeword in #1007 to regain control of the system. But since this only works when a keyboard is the source device, it was not a good solution. I therefore decided to revert that.

I also split test_macros up a bit more.

blocked by #1024

@sezanzeb sezanzeb marked this pull request as ready for review December 28, 2024 13:30
@sezanzeb sezanzeb merged commit c9de7ef into main Jan 1, 2025
6 checks passed
@sezanzeb sezanzeb mentioned this pull request Jan 4, 2025
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