Skip to content

Change Enter button depending on action #570

Description

@superuser-does

Is your feature request related to a problem? Please describe.

Android keyboards change the Enter button depending on the action the button is going to complete. Currently all shortcut entry fields use the multiline style, which looks like a Carriage Return: Image

In most apps (like this very text box) this would put you on the next line, but the way HTTP Shortcuts does it is inconsistent with the general UI in Android, because hitting this button may just send the request. This is a therefore a UI usability problem.

Describe the solution you'd like

  • If multiline
    • keep as is (IME_ACTION_NONE)
  • If single line:
    • IME_ACTION_GO if it's the final/trigger field. Should be default.
    • IME_ACTION_NEXT could be appropriate as users expect to tab through fields (e.g., Header Name > Header Value > Next). Ideally HTTP Shortcuts will know if it's not the last field. If too hard just use IME_ACTION_GO
    • IME_ACTION_SEND is intended for socialising and human conversation, but maybe we could make it configurable?

So if multiline, always follow the same behaviour. For single line, you could make it configurable or see if you can auto-guess - as long as the app knows if more fields will be displayed, and this may not be possible with scripting.

Additional context

Web browsers also send HTTP requests, and use IME_ACTION_GO in their URL field. Here is Firefox for Android:
Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions