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

100
Visualizações
Javascript to capture input from a Firestick controller and turn a single button press into two different button presses

I need html / javascript that will capture the input of a Firestick controller and have it do something else. Specifically I need the "Play/Pause" on the controller aka "Next" on the soft keyboard to minimize the keyboard. Since there is no Key ID for the "Back" button, I would like to have the click of next make the selector go left once then press enter.

So far I have the below but this just reloads the page. When I hit next.

Please be aware javascript is new to me so if you assist, please know I know nothing (John Snow) :-)

<script>
function checkKey(e){
    if(e.keyCode == 179) {
        //Play-Pause Button
e.key = "37";
e.key = "13";
    }
}
  </script>

//Later in the form brackets

<form action="#" onkeydown="checkKey(event);" id="custom-data" _lpchecked="1">
onkeydown="checkKey(event);"

https://developer.amazon.com/docs/fire-tv/supporting-controllers-in-web-apps.html

about 4 years ago · Juan Pablo Isaza
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