Is there any way to capture a return typed in an <input type="text"/>
element, and use that to pseudo-click the related “Rename” button associated with the text element?
Any ideas? I fear this may be the most n00b of questions…
Is there any way to capture a return typed in an <input type="text"/>
element, and use that to pseudo-click the related “Rename” button associated with the text element?
Any ideas? I fear this may be the most n00b of questions…
I believe wrapping it in a <form>
and capturing the form’s onsubmit
event should work?
Otherwise, I’ve done similar things using the keydown
event on the <input>
…
Good idea re: keydown
. I don’t think I can use a <form>
here, since it’s just one of many elements in a panel that aren’t related to the text field.