From c82675e06cff7822fdda4dfe20e0dcc626fc8b18 Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Sat, 12 Nov 2011 15:48:37 +0700 Subject: [PATCH] MDL-47494 ddimageortext: NOBUG adding comments to identify keys for key numbers in keyboard listener --- question/type/ddimageortext/yui/dd/dd.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/question/type/ddimageortext/yui/dd/dd.js b/question/type/ddimageortext/yui/dd/dd.js index faff9418b30..06b5298039d 100644 --- a/question/type/ddimageortext/yui/dd/dd.js +++ b/question/type/ddimageortext/yui/dd/dd.js @@ -439,12 +439,12 @@ YUI.add('moodle-qtype_ddimageortext-dd', function(Y) { _event: (Y.UA.webkit || Y.UA.ie) ? 'keydown' : 'keypress', _keys: { - '32': 'next', - '37': 'previous', - '38': 'previous', - '39': 'next', - '40': 'next', - '27': 'remove' + '32': 'next', // Space + '37': 'previous', // Left arrow + '38': 'previous', // Up arrow + '39': 'next', // Right arrow + '40': 'next', // Down arrow + '27': 'remove' // Escape }, _keyHandler: function (e, notifier) {