keycode - How to detect three pressed keys on keybord by jquery and javascript -


i need detect keys pressed in keyboard action upon that
wrote script

$(document).keyup(function(e){      var map = {18: false, 17: false, 65: false};    if (e.keycode in map) {      map[e.keycode] = true;      if (map[18] && map[17] && map[65]) {         alert("pressed alt+ctrl+a");      }    } });   

but script doesn't work
can on me in please

the e object provide e.ctrlkey aswell e.altkey , e.shiftkey

you need test this: e.ctrlkey && e.altkey && e.which == 65


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

javascript - Using jquery append to add option values into a select element not working -