-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Marked Text / SDL_TEXTEDITING
Event / IME Composition support
#5878
Comments
Relevant project: |
IHMO SDL is putting too much burden on the app with I guess it could be a Then dear imgui needs to somehow store this data and draw it with a caret. |
IBus makes this an option. In XTerm, the preedit text is displayed by IBus even if this option is turned on. peek.xterm.mp4So there must be some way to display this text. |
SDL_HINT_IME_SHOW_UI seems to be a Windows-only feature. Not sure what it does. https:/search?q=repo%3Alibsdl-org%2FSDL%20SDL_HINT_IME_SHOW_UI&type=code Anyway I've fixed it. |
@iacore I don't think your PR can fix this issue. From SDL2 2.0.4 changelog:
I've showed what |
It was briefly discussed in #3108
As an example, the Lite XL app is handling the Composition perfectly
(it is backed by SDL2, composition string, selected range are feed from the
SDL_TEXTEDITING
event)// [ ] Platform: SDL2 handling of IME under Windows appears to be broken and it explicitly disable the regular Windows IME. You can restore Windows IME by compiling SDL with SDL_DISABLE_WINDOWS_IME.
The above statement is partially correct, with the
SDL_HINT_IME_SHOW_UI
, imgui with SDL2 can show the Candidate List, but the Composition is feeding fromSDL_TEXTEDITING
event, and requires you to draw it.With
SDL_DISABLE_WINDOWS_IME
, Windows will be responsible for drawing the Composition also, but unfortunately other OS e.g. macOS, does not draw it for you.What would be the preferred approach to implement this? I could try to make a PR
The text was updated successfully, but these errors were encountered: