1
In my document
I am creating some keyboard shortcuts to facilitate the use of the page itself, and I am doing it as follows:
$(document).on("keyup", function(e){
/*Tecla C*/
if(e.which === 67){
alert("A tecla C foi pressionada");
}
});
Above when the C is pressed the page should perform an action, but how to handle the special keys, as the way it is if the user presses CTRL + C
, the event will be activated, how can I prevent this from happening with this shortcut and with the various other keyboard patterns? If possible I would not like to have to disable such default keyboard events / operating system.
Perfect, it’s exactly what I need <3
– Leo Letto