You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to make a <input> that invoke some function after user press enter. However this doesn't work: - the onKeydown event handler to the <input> simple got ignored
trying to add input to a <form> and add submit event handler doesn't work because form is not available in VM
Is there a way to implement this feature?
The text was updated successfully, but these errors were encountered:
It's a typo on my side, I wrote onKeydown. Should be onKeyDown 😂. Can form be supported? If so it would be easier I can just handle submit, instead of handle onKeyDown and check if the key is "Enter".
ailisp
changed the title
onKeydown event on input and form submit doesn't work
form suppost
Oct 17, 2023
I'd like to make a<input>
that invoke some function after user press enter. However this doesn't work:- the onKeydown event handler to the<input>
simple got ignored<form>
and addsubmit
event handler doesn't work becauseform
is not available in VMIs there a way to implement this feature?
The text was updated successfully, but these errors were encountered: