Skip to content

Commit 9ebd2ed

Browse files
committed
add a few command alias
(Like 'previous' for back and 'reset' for 'restart'.) I tended to forget the commands the first time I was using TryClojure. These aliases should help users as absent-minded as I am.
1 parent a7e3cc8 commit 9ebd2ed

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

resources/public/javascript/tryclojure.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,19 @@ function html_escape(val) {
113113

114114
function doCommand(input) {
115115
switch (input) {
116-
case 'next':
116+
case 'next':
117+
case 'forward':
117118
nextPage();
118119
return true;
119-
case 'back':
120+
case 'previous':
121+
case 'prev':
122+
case 'back':
120123
previousPage();
121124
return true;
122125
case 'restart':
126+
case 'reset':
127+
case 'home':
128+
case 'quit':
123129
goToFirstPage();
124130
return true;
125131
default:

0 commit comments

Comments
 (0)