JSFiddle - React, Tailwind, and code Playground

by Sebastian Kay

JavaScript

function KeyPress(e) {
      var evtobj = window.event? event : e
      if (evtobj.altKey && evtobj.keyCode == 49 && evtobj.ctrlKey) alert("Ctrl+z");
}

document.onkeydown = KeyPress;