W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] Drag and drop - keyboard support

From: Remy Sharp <remy@leftlogic.com>
Date: Wed, 15 Jul 2009 19:48:47 +0100
Message-ID: <EC81E319-9EE8-49B0-84C2-774C0957B856@leftlogic.com>
Hi,

I've been running quite a few tests with the Drag and Drop API, and  
more recently I was looking at creating an accessible demo of DnD.

Plugging ARIA support wasn't a problem, but keyboard support was a no  
goer.

I tried triggering the dragstart event from the keyboard - which was  
fine, except that I couldn't get the dataTransfer object in there (it  
was null), so it meant the whole drag operation couldn't be triggered  
from the keyboard.

Unless I'm missing something, keyboard accessibility has been  
overlooked for DnD.

It's been raised once before, and I agree with some of the points  
raised in the url below, but I *can* get around them with scripting,  
whereas keyboard support flat out doesn't work.

http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-July/020981.html

I'd like to know whether this is being considered anywhere?

I wondered if a copy and paste operation via the keyboard could be  
used to solve the keyboard DnD issue - in that coping on the :active  
element would trigger the dragstart event, and pasting from the  
keyboard could trigger the drop event on the current active element  
(that the user would tab to) (this idea was entirely inspired by  
Aron's post).

Is this a viable option?

Cheers,

Remy Sharp
Left Logic
Received on Wednesday, 15 July 2009 11:48:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC