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

Auto-Type: Abort keystroke if modifiers held on X11 #6351

Merged

Conversation

hifi
Copy link
Member

@hifi hifi commented Mar 27, 2021

Releasing lock modifiers during Auto Type does not work reliably on X11 and can cause some modifiers to get stuck and more precisely layout switching can get stuck.

Instead of trying to find out what modifiers to release we can be dumb and just abort when the user is holding modifiers that may affect the typing sequence.

With #6357 merged we return a retry request if modifiers are held.

Fixes #6350 and #1915 after #6357 is merged and this is rebased on top of it.

Testing strategy

See #6350

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

@droidmonkey
Copy link
Member

Is this ready for merge?

@hifi
Copy link
Member Author

hifi commented Apr 1, 2021

Need to rebase so the retry logic is used.

Releasing lock modifiers during Auto Type does not work reliably
on X11 and can cause some modifiers to get stuck and more precisely
layout switching can get stuck.

Instead of trying to find out what modifiers to release we can just
abort when the user is holding modifiers that may affect the typing
sequence.

Fixes keepassxreboot#6350
@hifi hifi force-pushed the fix/autotype-modifiers-mangling branch from 7b2439b to f8d057f Compare April 1, 2021 04:30
@hifi hifi marked this pull request as ready for review April 1, 2021 04:31
@hifi hifi linked an issue Apr 1, 2021 that may be closed by this pull request
@droidmonkey droidmonkey merged commit ca8abec into keepassxreboot:develop Apr 2, 2021
@phoerious phoerious added pr: bugfix Pull request that fixes a bug and removed bug labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

X11 Auto-Type breaks layout switch if Num Lock is on Don't start autotype until modifier keys are released
3 participants