Ability to press Enter to submit form

Product: PowerShell Universal
Version: 1.5.15

In Universal Dashboard 2.9 I had the following search box that would allow me to enter text and press the Enter key to submit.

New-UDInput -Title "Search" -id "SearchForm" -SubmitText "Search" -Content {
    New-UDInputField -Type 'textbox' -Name "SearchValue" -Placeholder "Search for Username"
} -Endpoint {}

I have updated the above code in PSU 1.5.15 to use New-UDForm. The problem I have now is that I can’t seem to figure out a way for the form to accept the “Enter” key as submit like I had the ability to do with New-UDInput. Is there a way to accomplish this?

New-UDForm -id "SearchForm" -SubmitText 'Search' -Content {
    New-UDTextBox -id 'SearchValue' -Type 'text' -Placeholder "Search for Username"
} -OnSubmit {}

I think this is a bug. I’ve opened an issue here: Enter does not work with New-UDForm · Issue #129 · ironmansoftware/issues · GitHub

1 Like