andlabs / andlabs/libui

Proposal: submit for uiForm

Open
#189 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
10.9k
Forks
612
PR merge metrics
No merged PRs in 30d

Description

Right now pressing the Enter key when typing in a `uiForm` does nothing. It should submit the form.

One solution would be to add a `uiFormOnSubmitted` function that calls the callback when Enter is pressed in the form's `uiEntry` childs. A `uiFormSubmit` function can be added to submit the form when clicking a button.

Thoughts?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.