JSFiddle - React, Tailwind, and code Playground
by dimiork
JavaScript
document.onkeydown = function hotkeys(e) {
if (!e) e = window.event;
var k = e.keyCode;
if (e.ctrlKey) {
if (k == 77) { alert('works'); } // Ctrl + M
}
}
by dimiork
document.onkeydown = function hotkeys(e) {
if (!e) e = window.event;
var k = e.keyCode;
if (e.ctrlKey) {
if (k == 77) { alert('works'); } // Ctrl + M
}
}