Skip to content

Fully support text suggestions for eframe/web - #8358

Draft
umajho wants to merge 2 commits into
emilk:mainfrom
umajho:eframe-web-mobile-text-suggestion
Draft

Fully support text suggestions for eframe/web#8358
umajho wants to merge 2 commits into
emilk:mainfrom
umajho:eframe-web-mobile-text-suggestion

Conversation

@umajho

@umajho umajho commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

TODO:

  • Update suggestions when the cursor is moved on Android.
  • Update suggestions when the cursor is moved on iOS/iPadOS. (Fully support mobile keyboard in web TextEdit #8068 demonstrated that this should be possible.)
  • preceding_text -> InputContext::preceding_text.
  • Include succeeding_text in the input context. (struct InputContext { preceding_text: String, succeeding_text: String, })
  • Performance: Move InputContext from IMEOutput to Context, and add IMEOutput::input_context_changed, so the input context can be updated only when necessary and is not copied for every frame.
  • Prevent unintended changes to the text agent <input>'s selection range (e.g., from iOS' spacebar trackpad feature).

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown

Preview available at https://egui-pr-preview.github.io/pr/8358-eframe-web-mobile-text-suggestion
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant