JSFiddle - React, Tailwind, and code Playground
HTML
<p>
Press Alt + X
</p>
JavaScript
$(document).keydown(function(event) {
if (event.altKey && event.which === 88) {
alert('Alt + X pressed!');
e.preventDefault();
}
});
<p>
Press Alt + X
</p>
$(document).keydown(function(event) {
if (event.altKey && event.which === 88) {
alert('Alt + X pressed!');
e.preventDefault();
}
});