7
Capturando combinación de teclas ctrl + z en javascript
Estoy tratando de capturar ctrl+ zcombinación de teclas en javascript con este código: <html> <head> <title>Untitled Document</title> </head> <body> <script type='text/javascript'> function KeyPress(e) { var evtobj = window.event? event : e //test1 if (evtobj.ctrlKey) alert("Ctrl"); //test2 if (evtobj.keyCode == 122) alert("z"); //test 1 & 2 if (evtobj.keyCode == 122 && …