Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var btnUndo = $('#handPre')[0];
- // https://stackoverflow.com/questions/16006583/capturing-ctrlz-key-combination-in-javascript
- function KeyPress(e) {
- var evtobj = window.event? event : e
- if (evtobj.keyCode == 90 && evtobj.ctrlKey)
- btnUndo.click();
- }
- document.onkeydown = KeyPress;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement