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

121
Visualizações
Onclick Ctrl+Shift+L How to show in Console?

i am using react js and want that when i press Ctrl+Shift+L it print a msg in console log right now if i press ctrl+ shift msg is print but when ctrl+shift+L not Printing Anthing

Code:-

 const handleKeyDown = (event, ID) => {
        if (event.key === "Delete") {
            //alert(name);
            axios.post(`http://localhost:9763/api/setCue?Idx=${ID}`,
                {
                    method: 'post',
                    headers: {
                        'Accept': 'application/json',
                        'Content-Type': 'application/json',
                        'Access-control-allow-origin': '*'
                    },
                    auth: {
                        username: 'admin',
                        password: 'password'
                    }
                }).then(response => {
                    console.log("Delete.Key", response);
                }).catch(error => {
                    console.log("Error In Post Data", error);
                });
            console.log("Delete Key Press", ID);
        }
       
        if ((event.ctrlKey && event.key === "Shift") && (event.key === "Z" )) {
            console.log("hello");
        }
        //up and Down key
        const active = document.activeElement;
        active.addEventListener('keydown', function (event) {

            switch (event.key) {
                case "ArrowUp":
                    active?.previousElementSibling?.focus();
                    event.preventDefault();
                    break;
                case "ArrowDown":
                    active?.nextElementSibling?.focus();
                    event.preventDefault();
                    break;
                default: break;
            }
        });
    }

And also when i press the Delete button status goes in pending enter image description here Why when i press delete it's goes in pending status?

Plz help..

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