Skip to content

Trigger associated submit button when "enter" pressed #71

@mitchhentges

Description

@mitchhentges
Contributor

When configuring inputs on a webpage, I can associate them with a form (which has a primary submit button). Then, when I click "enter" while any of those inputs are focused, then the submit button will automatically be triggered.

In my case, I've a couple inputs and a submit button:
Screenshot from 2019-05-25 18-36-38

I'd love to make it so hitting "enter" while the Entry is focused will cause the submit action 😄

Activity

NoraCodes

NoraCodes commented on May 31, 2019

@NoraCodes
Collaborator

I don't think this is possible using libui itself at the moment, sorry! libui does have forms, which we will get soon, but no way to set a submit button. It's definitely something I'd like to have, though, so I'll leave the issue open.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @NoraCodes@mitchhentges

        Issue actions

          Trigger associated submit button when "enter" pressed · Issue #71 · rust-native-ui/libui-rs