Skip to content

Commit

Permalink
keyboard shortcuts for undo/redo, cf #135 and #171
Browse files Browse the repository at this point in the history
  • Loading branch information
jonorthwash committed Nov 5, 2017
1 parent 2878882 commit fcd0e47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions standalone/lib/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,12 @@ $(document).ready(function(){
prevSenSent();
map = [];
map["Shift"] = true; // leave Shift so that another event can be fired
}else if(map["Control"] && map["z"]) {
undoManager.undo();
updateUI();
}else if(map["Control"] && map["y"] || map["Control"] && map["Shift"] && map["Z"]) {
undoManager.redo();
updateUI();
}
//return false; // only needed if want to override all the shortcuts
}
Expand Down

0 comments on commit fcd0e47

Please sign in to comment.