Skip to content

android: report soft keyboard actions as the return key - #4801

Open
SergioRibera wants to merge 1 commit into
rust-windowing:masterfrom
SergioRibera:android-ime-editor-action
Open

SergioRibera wants to merge 1 commit into
rust-windowing:masterfrom
SergioRibera:android-ime-editor-action

Conversation

@SergioRibera

Copy link
Copy Markdown

In single-line fields GameTextInput turns the return key of the soft keyboard into an editor
action ("Done", "Go", "Search", ...) and sends it as InputEvent::TextAction. The backend drops
it as an unknown event, so pressing the action key does nothing: forms can't be submitted from
the keyboard.

This reports the action as a press and release of the return key, which is what the key stands
for. Applications already handle Enter to submit a field, and there is no IME action event in
winit to report it otherwise.

InputEvent::TextAction landed in android-activity 0.6.1, hence the bump.

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality

@nicoburns

Copy link
Copy Markdown
Contributor

Do we not need the actual event type?

This branch has not been deployed

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants