I am using ctrl + charCode**s in order to delete a row from the listing page which is working fine on firefox but when I tested it on **Chrome, the event.preventDefault() couldn't stop the browser based function to come up
function showkey(e){
if(e.ctrlKey && e.charCode == 100){
e.preventDefault();
//delete code // }
<body onkeypress="showkey(event);">