Guest User

Check for COMMAND+SHIFT+Z

a guest
Mar 14th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     switch(event.charCode)
  2.     {
  3.             case 90:      // Z
  4.             case 122:    // z
  5.                 /* pre-Argo and on the mac then ignoreNextTextEvent */
  6.                 if (!Configuration.playerEnablesArgoFeatures && isMac) {
  7.                     ignoreNextTextEvent = true;
  8.                 }
  9.  
  10.                 if (event.shiftKey) {
  11.                     redo();
  12.                     event.preventDefault();
  13.  
  14.                 } else {
  15.                     undo();
  16.                     event.preventDefault();
  17.                 }
  18.  
  19.                 break;
Advertisement
Add Comment
Please, Sign In to add comment