EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 04, 2024, 02:34:45 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for React
>
may i get the keydown event from TextBox or PasswordBox
Pages: [
1
]
« previous
next »
Print
Author
Topic: may i get the keydown event from TextBox or PasswordBox (Read 4836 times)
yulei
Newbie
Posts: 9
may i get the keydown event from TextBox or PasswordBox
«
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
Re: may i get the keydown event from TextBox or PasswordBox
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...