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) =>
setAuthenticatePassword(e.target.value)
}
onKeyDown={(e) => {
if (e.key === "Enter") {
authenticateWallet();
}
}}
/>
<Spacer height="20px" />
<CustomButton onClick={authenticateWallet}>
<CustomButton onClick={authenticateWallet} >
Authenticate
</CustomButton>
<Typography color="error">