I am developing a website with a simple form to login. Sometimes, when I press the T key, it doesn't appear, but all the other letters do. It is a simple input in js, not bootstrap or similar. It happens in all the computers, not only mine. ¿Any ideas for the reason?
Here is my code:
<input
value={values[key].value}
onChange={handleChange(key)}
onFocus={(e) => {
setFocusedElement(key);
}}
onBlur={(e) => {
setFocusedElement("blur");
}}
type="text"
ref={(el) => (inputActa.current[i] = el)}
onKeyPress={(event) => {
if (event.key === "Enter") {
changeFocus(i);
}
}}
tabIndex={values[key].correcto ? "-1" : "0"}
/>
Thanks!
Aucun commentaire:
Enregistrer un commentaire