How to "enable submission via the enter key" in the MudDialog
?
#4464
Unanswered
tiesmaster
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I've not a complete answer but I've do some search on how CloseOnEscapekey is implemented and found that a Key Interceptor is in charge of key interception (with help of js interop) and is used in MudDialogInstance.OnAfterRenderAsync. Perhaps you could use your own Key Interceptor for In hope it can help you. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking for a way to get the enter key to "press OK" on my dialog. I see that there is support for the escape key to close the dialog using
CloseOnEscapekey
, behaving as the "cancel button" when you have one. I see that there are some issue about this. For example, this one, but that's rather about disabling closing on enter, and there anEditForm
is being used, while, I have very simple dialog, with just aMudForm
(as you can see here), as that was very easy to make the validation work. Should I also make use of anEditForm
, or is there a way to make it work with theMudForm
, or should I just bind the enter key somehow?Any suggestions, or ideas?
Beta Was this translation helpful? Give feedback.
All reactions