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 Option for Inserting Delay between Key Press Events #1584

Closed

Conversation

DropDemBits
Copy link
Contributor

Summary of changes

On Pop_OS! 22.04, typing in Firefox often drops backspaces when undoing words (likely due to #1030). While it doesn't fix that issue, this is a suitable workaround in the mean time (there are also other input issues for other users on other OSes that are fixed by adding a delay between key presses).

Supersedes #1132 (see this comment).

Also keeps the same option name as the original PR so that anyone using the old PR can use this one without having to change anything.

Notable changes from the original PR

  • Also includes this change to delay when changing keymaps in Linux.

  • Adds set_key_press_delay to Output. When not implemented it currently raises a NotImplementedError, although for some output interfaces it may be okay to just leave it as a stub.

Tested on:

  • Linux
  • macOS
  • Windows

Pull Request Checklist

  • Changes have tests
    • Note: only for if an int option is missing, not for validating if the delay option is not negative
  • News fragment added in news.d. See documentation for details

@user202729
Copy link
Member

(while this was the approach that the original code use also) It feels like redundant duplication of code to repeat the delay code in Windows/Linux/Mac. May be a better idea to handle it in the layer above.

@sammdot sammdot mentioned this pull request Sep 27, 2023
5 tasks
@DropDemBits DropDemBits deleted the delay-key-presses branch September 27, 2023 05:57
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.

2 participants