JSFiddle - React, Tailwind, and code Playground

by techiedelight

HTML

<html>

  <head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.6.3/mousetrap.min.js"></script>
  </head>

  <body>
    Press Alt + X
  </body>

</html>

JavaScript

Mousetrap.bind(['alt+x'], function() {
  alert('Alt + X pressed!');
  return false;
});