diff --git a/src/pages/SignInPage.tsx b/src/pages/SignInPage.tsx index 8dce99b..a89f790 100644 --- a/src/pages/SignInPage.tsx +++ b/src/pages/SignInPage.tsx @@ -80,6 +80,16 @@ const SignInPage: React.FC = () => { } }; + const handleOnKeyDown = (e: React.KeyboardEvent) => { + if (e.key === 'Enter') { + handleOnClick(); // Enter 입력이 되면 클릭 이벤트 실행 + } + }; + + const handleOnClick = () => { + handleClickLoginButton(); + } + const redirect_uri = `${location.origin}/social-account`; //Redirect URI const KAKAO_KEY = '77ddf1baeb87f4a9752ed437db43cd96'; //kakao REST API KEY const NAVER_CLIENT_ID = 'qR4Npp1ui69SCF6nAJd2'; @@ -181,6 +191,7 @@ const SignInPage: React.FC = () => { placeholder="비밀번호를 입력해주세요." name="password" value={loginInfo.password} + onKeyDown={handleOnKeyDown} />