• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Pruebas Online
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

137
Vistas
Javascript keydown event not working when three keys that form a triangle are pressed

I am currently trying to detect which keys are currently pressed at any given time. Like others have said, I used the keydown and keyup events and log the keyCodes to an object. I also added console.log statements in my keydown and keyup listeners. Currently, everything works well except when three keys are pressed simultaneously in a triangular shape (on a QWERTY keyboard: ["T", "G", "Y"], ["4", "5", "R"], etc.), the keys don't log as expected: either one or two logs, or none of them logs. I wonder if there's a way to get around whatever limitation is causing this?

almost 3 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

this could possibly be a keyboard ghosting which an issue caused by hardware limitations (keyboard),

you should try to test your keyboard here https://www.microsoft.com/applied-sciences/projects/anti-ghosting-demo

almost 3 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda