JSFiddle - React, Tailwind, and code Playground
JavaScript
onkeydown = function(e){
if(e.ctrlKey && e.keyCode == 'S'.charCodeAt(0)){
e.preventDefault();
alert("Shotcut Pressed")
}
}
onkeydown = function(e){
if(e.ctrlKey && e.keyCode == 'S'.charCodeAt(0)){
e.preventDefault();
alert("Shotcut Pressed")
}
}