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

Bind keys with keycodes #4707

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elParaguayo
Copy link
Member

Draft for now...

Based on the discussion in #933 this is an attempt to allow users to bind keys via keycode rather than keysym.

Keycodes can be bound with:

Key([mod], key_code, lazy...)

Where key_code is an integer value (compared to keysyms being strings).

Ideally, I need users to test this and report any bugs.

@jwijenbergh @m-col would welcome thoughts on the wayland implementation. I've hardcoded this to match against self.keyboards[0] but not sure if that's appropriate or not.

CI will almost certainly fail for the time being too!

@elParaguayo elParaguayo linked an issue Feb 20, 2024 that may be closed by this pull request
Copy link

This PR is stale because it has been open 90 days with no activity. Remove the status: stale label or comment, or this will be closed in 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create Key by keycode
1 participant