Use ei_text in the type-text example - #28
Merged
Merged
Conversation
Owner
|
It would probably be good to have this as a separate example, or a command line argument on the same example. Although |
Adds a separate type-text-ei example that binds ei_text (libei 1.6.0) and sends a UTF-8 string in a single text.utf8() call, instead of reverse-mapping characters to keycodes. The existing type-text example is kept unchanged as a demonstration and test case for the ei_keyboard protocol; xkbcommon stays a dev-dependency for it.
Contributor
Author
|
Sure. I've kept |
glamberson
force-pushed
the
type-text-ei-text
branch
from
June 15, 2026 22:33
9cfda42 to
59398ab
Compare
ids1024
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The
type-textexample reverse-mapped each character to a keycode and shift level through an xkb keymap and replayed synthetic key presses. Theei_textinterface (libei 1.6.0) takes a UTF-8 string directly, so this bindsei_textand sends the string in onetext.utf8(...)call.It also drops the keymap handling, the keymap state, and the now-unused
xkbcommondev-dependency. The seat reports when the server does not advertiseei_textinstead of panicking.Uses the generated
ei::Textbindings from #12; independent of the high-levelEiEvent/EisRequestwork in #27.