Skip to content

Add support for InputEvent::TextAction events#216

Merged
rib merged 1 commit intomainfrom
rib/pr/input-event-text-action
Feb 17, 2026
Merged

Add support for InputEvent::TextAction events#216
rib merged 1 commit intomainfrom
rib/pr/input-event-text-action

Conversation

@rib
Copy link
Member

@rib rib commented Jan 8, 2026

This exposes IME actions via an InputEvent::TextAction event so that it's possible to recognise when text entry via an input method is finished.

This adds an TextInputAction enum to represent the action key on a soft keyboard, such as "Done".

For example, this makes it possible to emit Ime::Commit events in Winit.

@rib rib requested a review from MarijnS95 January 8, 2026 00:34
@rib
Copy link
Member Author

rib commented Jan 8, 2026

cc: @jb55 @nicoburns it could be good if you're able to take a look at this regarding IME enabling for Android

I've tested this with winit 0.30 + egui in combination with #214 and #215

@rib
Copy link
Member Author

rib commented Jan 8, 2026

If anyone wants to smoke test this then you can try running the agdk-egui example in this rust-android-example branch: https://github.com/rust-mobile/rust-android-examples/tree/rib/wip/ime-test

That example will fetch my draft changes for winit from https://github.com/rib/winit/tree/rib/pr/android-ime-0.30

Base automatically changed from rib/pr/android-games-sdk-4-kbd-vis-editor-actions to main February 17, 2026 21:45
This exposes IME actions via an InputEvent::TextAction event so that
it's possible to recognise when text entry via an input method is
finished.

This adds a `TextInputAction` enum to represent the action key on a soft
keyboard, such as "Done".

For example, this makes it possible to emit Ime::Commit events in Winit.
@rib rib force-pushed the rib/pr/input-event-text-action branch from 23c9933 to 729db3a Compare February 17, 2026 21:54
@rib rib merged commit 7e8990f into main Feb 17, 2026
7 checks passed
@rib rib deleted the rib/pr/input-event-text-action branch February 17, 2026 21:59
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

Comments