Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

205
Visualizações
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?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

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

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda