summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-08-27 20:44:44 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-08-27 20:44:44 +0200
commit44e18811b945ecac5f2b4ed1613ce4d974473e16 (patch)
treedeb500336c00b589df9954adf43198427fa347ad
parentfabdc0472b6f2828e34f01a13fc3fa738f9eab5d (diff)
Allow 'n' for next answer in Prolog query
-rw-r--r--js/prolog.js4
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,