Skip to content

Commit

Permalink
switch case call
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Sep 28, 2019
1 parent 22ac80a commit 145f645
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,19 +215,19 @@ document.addEventListener('keydown', function (event) {
break;
case 49: // 2
case 87: // w
call('start');
call('pause');
break;
case 49: // 3
case 69: // e
call('start');
call('passed');
break;
case 49: // 4
case 82: // r
call('start');
call('reset');
break;
case 49: // 5
case 84: // t
call('start');
call('clear');
break;
}
});
Expand Down

0 comments on commit 145f645

Please sign in to comment.