--------------^ Click "Preview" for a nicer view!
We primarily use GitHub as an issue tracker; for usage and support questions, please check out these resources below. Thanks!
keypress event ???@Mr-jiangzhiguo v0.x is no longer maintained.
it can support keypress event
You have to use the keyboard events and wait for an enter key to be pressed. Even better, you can put the input into a form and wait for the submit event to trigger.
@oliviertassinari
now, I use onKeyDown, and make it.
<TextField
type="search"
hintText="Search"
style={{width: '80%'}}
value={searchValue}
onChange={this.handleSearch}
onKeyDown={this.KeyDown}
/>
this, I can get the keyCode
Most helpful comment
@oliviertassinari
now, I use
onKeyDown, and make it.this, I can get the keyCode