add onkeydown

This commit is contained in:
Phillip Lang Martinez 2024-07-10 01:21:50 +03:00
parent 818be7449f
commit 5e8a0ce212

View File

@ -1063,9 +1063,14 @@ function App() {
onChange={(e) => onChange={(e) =>
setAuthenticatePassword(e.target.value) setAuthenticatePassword(e.target.value)
} }
onKeyDown={(e) => {
if (e.key === "Enter") {
authenticateWallet();
}
}}
/> />
<Spacer height="20px" /> <Spacer height="20px" />
<CustomButton onClick={authenticateWallet}> <CustomButton onClick={authenticateWallet} >
Authenticate Authenticate
</CustomButton> </CustomButton>
<Typography color="error"> <Typography color="error">