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

IME: Position input window near textbox #122

Open
LPGhatguy opened this issue Dec 1, 2023 · 3 comments
Open

IME: Position input window near textbox #122

LPGhatguy opened this issue Dec 1, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@LPGhatguy
Copy link
Member

In applications that support system IME, the composition box is placed near the text cursor. We should support handling that information in yakui-core and relay it to the windowing library in libraries like yakui-winit.

image

@LPGhatguy LPGhatguy added the enhancement New feature or request label Dec 1, 2023
@stolen-programmer
Copy link
Contributor

I am reviewing the code drawn by the cursor

I don't quite understand why the cursor will shift upwards

Oh no, I actually forgot to set the position of the input method

@stolen-programmer
Copy link
Contributor

I checked the code of Winit and found that setting the input area is simple, but we need an input location

This position should be provided by the input box and passed to the Winit backend for setting

Set the input area when the input box obtains focus

But I don't know much about yakui

@LPGhatguy
Copy link
Member Author

Thank you for looking into that! I'll see what I can do about exposing the information we need from yakui. It should be easy enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants