x11: Support xcb-keysyms as fallback when XKB support not available #679
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These patch set pulls the parts of the code from #303 which implement usage of
xcb-keysyms
to handle keyboard input event translation, adding a few niceties on top:-Dx11_keyboard=
to Meson to choose which methods are supported. It is possible to usexkb
,xcb-keysyms
, or both. Passing an empty list disables keyboard input to web views.xcb-keysyms
, then XKB will be preferred, and if not available thenxcb-keysyms
is used as fallback.xcb-keysyms
library when not available. The library is a single.c
file so it does not add much weight to the X11 platform plug-in, and we make it less likely that people may end up without keyboard input support.Finally, I want to thank @agordon who was the person that originally wrote the code 🙏🏼