|
|
|
|
@ -7,17 +7,17 @@ export const NUMPAD_TYPE={ |
|
|
|
|
CHOICE: 'choice', |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const KEY_ENTER='q'; |
|
|
|
|
const KEY_ENTER='d'; |
|
|
|
|
const KEY_BACKSPACE='a'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const TMP_MAP_KEY={ |
|
|
|
|
1:3, |
|
|
|
|
/* 1:3, |
|
|
|
|
3:1, |
|
|
|
|
4:6, |
|
|
|
|
6:4, |
|
|
|
|
9:7, |
|
|
|
|
7:9, |
|
|
|
|
7:9,*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export default function NumPad({onSend, disabled, type}){ |
|
|
|
|
@ -62,7 +62,7 @@ export default function NumPad({onSend, disabled, type}){ |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case NUMPAD_TYPE.PASSWORD: |
|
|
|
|
if(refInput.current.length=3){ |
|
|
|
|
if(refInput.current.length==3){ |
|
|
|
|
onSend(refInput.current); |
|
|
|
|
refAudio.current[KEY_ENTER]?.play(); |
|
|
|
|
}else{ |
|
|
|
|
|