In my document
I'm creating some shortcuts on the keyboard to make it easier to use the page itself, and I'm doing it as follows:
$(document).on("keyup", function(e){
/*Tecla C*/
if(e.which === 67){
alert("A tecla C foi pressionada");
}
});
Above when C is pressed the page should perform an action, but how to handle the special keys, because of 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 want to have to disable such keyboard / OS default events.