EasyUI Forum

General Category => EasyUI for React => Topic started by: yulei on January 25, 2019, 06:10:03 AM



Title: may i get the keydown event from TextBox or PasswordBox
Post by: yulei on January 25, 2019, 06:10:03 AM
when input the password in the login page , user usually input Enter(key=13) to login .

the jquery version is here:
https://www.jeasyui.com/forum/index.php?topic=5569.0

how can i do this in react version?


Title: Re: may i get the keydown event from TextBox or PasswordBox
Post by: jarry on January 25, 2019, 07:48:32 PM
Append a submit button to the form and you will be able to submit the form by pressing ENTER key.
Code:
<Form ...>
...
<button type="submit" style={{display:'none'}}></button>
</Form>