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

Support autorepeat? #7

Open
anko opened this issue Feb 15, 2023 · 0 comments
Open

Support autorepeat? #7

anko opened this issue Feb 15, 2023 · 0 comments

Comments

@anko
Copy link
Owner

anko commented Feb 15, 2023

As pointed out in #6, currently holding a key only displays when the key was pressed, and when it was released, with no autorepeat. For example, holding down a for a while with xkbcat -up produces

+a
-a

Since key autorepeat is supported at an X11 level, it would be convenient to have an -autorepeat flag, so that xkbcat -up -autorepeat could instead show

+a
=a
=a
=a
-a

where =a stands for an autorepeated KeyPress event.

This change would be backward-compatible.

The XI_RawKeyPress events currently listened for don't contain the flag, but XI_KeyPress events have event->flags & XIKeyRepeat.

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

No branches or pull requests

1 participant