From ad417fdfe738e15231e7dcbddec2017c71a20e71 Mon Sep 17 00:00:00 2001 From: Jerome Mouneyrac Date: Thu, 21 Nov 2013 17:42:18 +0800 Subject: [PATCH] MDL-42876 Screen reader does not trigger the keyboard move --- lib/yui/dragdrop/dragdrop.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/yui/dragdrop/dragdrop.js b/lib/yui/dragdrop/dragdrop.js index e8d0895c431..773373c2fc6 100644 --- a/lib/yui/dragdrop/dragdrop.js +++ b/lib/yui/dragdrop/dragdrop.js @@ -59,7 +59,8 @@ YUI.add('moodle-core-dragdrop', function(Y) { .setAttribute('title', title) .setAttribute('tabIndex', 0) .setAttribute('data-draggroups', this.groups) - .setAttribute('aria-grabbed', 'false'); + .setAttribute('aria-grabbed', 'false') + .setAttribute('role', 'button'); dragelement.appendChild(dragicon); dragelement.addClass(MOVEICON.cssclass);