const {searchtext, setsearchtext} = useState('')
<TextField
id="outlined-select-currency"
select
label="Select"
defaultValue="EUR"
value={searchtext}
helperText="Please select your currency"
onKeyDown={e => {
setsearchtext(searchtext + e.key.toString()
}}
>
{currencies.map((option) => (
<MenuItem key={option.value} value={option.value}>
{option.label}
</MenuItem>
))}
</TextField>
我尝试过 keydown 事件
我想要被搜索到