diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-08-27 20:44:44 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-08-27 20:44:44 +0200 |
commit | 44e18811b945ecac5f2b4ed1613ce4d974473e16 (patch) | |
tree | deb500336c00b589df9954adf43198427fa347ad | |
parent | fabdc0472b6f2828e34f01a13fc3fa738f9eab5d (diff) |
Allow 'n' for next answer in Prolog query
-rw-r--r-- | js/prolog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/prolog.js b/js/prolog.js index c3e3da8..089f63e 100644 --- a/js/prolog.js +++ b/js/prolog.js @@ -60,8 +60,8 @@ terminal.echo(''); // send newline after semicolon or full-stop terminal.pause(); }, 0); - if ((event.which == 32) || (event.which == 59)) { - // space or semicolon -> show next answer + if ((event.which == 32) || (event.which == 59) || (event.which == 110)) { + // space or semicolon or n -> show next answer event.which = 59; // semicolon codeq.comms.sendQuery({ 'problem_id': problem_id, |