Skip to content

Commit

Permalink
added new hotkey ctrl-r for reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Schmid committed May 30, 2015
1 parent a541e30 commit e310738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.as
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@
}
});
stage.addEventListener(KeyboardEvent.KEY_DOWN, function(e:KeyboardEvent):void {
if (e.keyCode == 32) { // spacebar
if (e.keyCode == 32) { // <SPACE>
clickGoButton();
}
if (e.keyCode == 116) { // F5
if (e.keyCode == 116 || (e.ctrlKey && e.keyCode == 82)) { // <F5> or <Ctrl-r>
reset();
}
});
Expand Down

0 comments on commit e310738

Please sign in to comment.