0

How do I map a keyboard shortcut which will trigger a keypress? Something like:

document.addEventListener("keyup", doc_keyUp, false);
function doc_keyUp(e) {
    if (e.ctrlKey && e.keyCode == 57) { // key code for 9
       // function that behaves exactly like how "shift+tab" functions
    }
}

Would be ideal if this can be done without jquery

Poh Zi How
  • 1,489
  • 3
  • 16
  • 38

0 Answers0