0
good afternoon I got that code right here
$(document).on('keydown', function(e) {
console.log(e.which); // Retorna o número código da tecla
console.log(e.altKey); // Se o alt foi Pressionado retorna true
if ((e.altKey) && (e.which === 80)) { // Pesquisar (Alt + P)
document.body.innerHTML = 'Abriu Pesquisa.';
}
});
it is alt plus the letter plus in the case need two letter example alt+p+o is possible someone who knows could help me from now on thank
Alt+Key+Key is not a unique combination. What happens in desktop applications is something like Alt+Keys1 followed by Alt+Keys2.
– Pagotti
interesting could give me an example, maybe this can help me
– Diego Laura Soares