Skip to content

Android Enter Issues #87

Description

@jstoks

The enter key is not working on Android leaving players unable to send commands normally.

  • The standard virtual keyboard Enter doesn't work.
  • Bluetooth enter key doesn't work
  • Chrome, chromium based, and Firefox affected
  • mod+enter will work if mapped in the game
  • other characters work fine as surrogate "enter" keys

I did some googling and it seems like Enter is just weird on Android. Apparently, android simply doesn't send a key code for the "Enter" key if you have an input field focused.

It's a widely reported quirk when you search, but there's not a lot of explanation for it. These ancient sources go into it.

https://forum.jquery.com/portal/en/community/topic/how-to-get-a-enter-key-event-by-the-android

https://www.outsystems.com/blog/posts/create-input-mask-for-mobile/

It's not something I'm terribly familiar with.

Seems like you have to wrap the field in a decoy form just to catch the submit event OR maybe a textarea could work since enter will still add new lines there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions