开发者

dojo drag and drop and key handlers

I have a dojo.dnd.Source container with multiple dnd items. I'd like to give the user the option to select one of the dnd items in the sourc开发者_StackOverflowe and then use their backwards/forwards keys to navigate to other items in the source. I've tried setting onkeyup/onkeydown handlers on the dnd items, but they don't seem to fire. I've also tried setting key handlers on the dnd source container, but no luck there either.

Any ideas on whether this is possible - if so, on what dom node should I attach my keyup/keydown listeners?

Thanks

Sean

PS - using dojo 1.3 in an Adobe AIR application.


In general key events are not position-specific like mouse events, and they target a focused node, like a radio button, or a text box. I suspect you don't have form nodes there. You can always try to emulate it yourself, but Dojo DnD doesn't support it out of the box.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜