Re: [whatwg] Drag and drop - keyboard support

2009-07-16 Thread Aron Spohr
Hi Ian,

--- Ian Hickson i...@hixie.ch wrote on Thu, 16.7.2009:
 The drag-and-drop model described in the HTML5 spec is input-device- 
 agnostic. If implementations don't support keyboard drag-and-drop (e.g. 
 copy-and-paste) then you should bring this up with the relevant vendors.

I don't think the spec for Drag and Drop is fully agnostic as it stands right 
now. A lot is obviously up to the vendor how and how much functionality they 
want to implement in their user agent. But I believe that there is a minimum 
set of requirements we should consider to make Drag and Drop truly agnostic. 
When you find the time I'd really appreciate your comments on this post:
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-July/020981.html

Thanks
Aron





[whatwg] Drag and drop - keyboard support

2009-07-15 Thread Remy Sharp

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



Re: [whatwg] Drag and drop - keyboard support

2009-07-15 Thread Ian Hickson
On Wed, 15 Jul 2009, Remy Sharp wrote:
 
 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.

The drag-and-drop model described in the HTML5 spec is input-device- 
agnostic. If implementations don't support keyboard drag-and-drop (e.g. 
copy-and-paste) then you should bring this up with the relevant vendors.


 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).

It's more or less what the spec says about copy-and-paste:

   http://www.whatwg.org/specs/web-apps/current-work/#copy-and-paste

-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'