EasyUI Forum
May 04, 2024, 02:34:45 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: may i get the keydown event from TextBox or PasswordBox  (Read 4836 times)
yulei
Newbie
*
Posts: 9


View Profile Email
« 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?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!