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 text-input support #43

Open
emersion opened this issue Nov 18, 2018 · 3 comments
Open

Add text-input support #43

emersion opened this issue Nov 18, 2018 · 3 comments

Comments

@emersion
Copy link

This allows virtual keyboards and IME to work.

https://github.com/wayland-project/wayland-protocols/blob/master/unstable/text-input/text-input-unstable-v3.xml

@kchibisov
Copy link
Member

I'm not entirely sure if there's a need implementing helpers for this protocol, knowing that it should be handled similar to how touch/pointer/keyboard are being handled in seat listener that user will create anyway

let idx = seats.iter().position(|(name, _)| name == &seat_data.name);
.

@vberger if you have an idea what helpers could be added for it, I'll try to implement them in sctk, though.

@elinorbgr
Copy link
Member

Yes, the process for retrieving the text_input for a seat is pretty similar to all other protocols that plug onto the seat list.

But the text_input interface is complex and requires a nontrivial amount of state tracking, so I think it'd definitely gain by having some helpers designed for it. I haven't really given much time thinking about how to design a good API for these helpers though.

@kchibisov
Copy link
Member

But the text_input interface is complex and requires a nontrivial amount of state tracking, so I think it'd definitely gain by having some helpers designed for it. I haven't really given much time thinking about how to design a good API for these helpers though.

I'll start plumbing it into winit and will see how ti goes, since we have alacritty to test such things on. Then we may just move those bits into sctk, I guess.

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

No branches or pull requests

3 participants