Skip to content

Fix IME text input wrapping (#23932)#24421

Open
jxcv0 wants to merge 1 commit into
bevyengine:mainfrom
jxcv0:fix-ime-text-input-wrapping
Open

Fix IME text input wrapping (#23932)#24421
jxcv0 wants to merge 1 commit into
bevyengine:mainfrom
jxcv0:fix-ime-text-input-wrapping

Conversation

@jxcv0
Copy link
Copy Markdown

@jxcv0 jxcv0 commented May 24, 2026

The IME support example configures its editable text field as a
single visible input, but the text layout still used default soft
wrapping. When the cursor moved through long text, wrapped visual lines
could appear as disconnected text segments.

Set the example input to use TextLayout::no_wrap(), matching the
other single-line text input examples while still allowing explicit
newlines.

Fixes #23932.

cargo check --example ime_support --features system_font_discovery

The IME support example configures its editable text field as a
single visible input, but the text layout still used default soft
wrapping. When the cursor moved through long text, wrapped visual lines
could appear as disconnected text segments.

Set the example input to use `TextLayout::no_wrap()`, matching the
other single-line text input examples while still allowing explicit
newlines.

Fixes bevyengine#23932.

```sh
cargo check --example ime_support --features system_font_discovery
```
@github-actions
Copy link
Copy Markdown
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide, as well as our policy regarding AI usage, and we look forward to reviewing your pull request shortly ✨

@kfc35 kfc35 added D-Trivial Nice and easy! A great choice to get started with Bevy C-Examples An addition or correction to our examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward A-Text Rendering and layout for characters labels May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters C-Examples An addition or correction to our examples D-Trivial Nice and easy! A great choice to get started with Bevy S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent text rendering when moving cursor (continuous vs. segmented)

2 participants