Accessibility: Make ZeroClipboard work for Enter key presses #80

Open
JamesMGreene opened this Issue Jan 16, 2013 · 7 comments

Comments

Projects
None yet
5 participants
@JamesMGreene
Owner

JamesMGreene commented Jan 16, 2013

Currently, ZeroClipboard attaches itself to glued elements on mouseover and injects into the user's clipboard on click. This is awesome.

However, everything I've read about the Flash clipboard API suggests that we can also trigger the injection on keyboard events, e.g. the user pressing the Enter key. Not necessarily a high priority feature but it is something I'd like us to attempt to get working at some point in the future....

Note: We may not succeed. 😕

Requirements:

  1. Glued HTML elements now need a "focus" handler, which would then focus on the Flash object instead.
  2. The ActionScript would need a new KEY_DOWN event handler listening for the Enter key.

Possible points of failure:

  1. Some sources speculate that this is only possible if we change wmode to opaque. I believe doing so would make the ZC object a visible layer, which would be unacceptable.
  2. Stealing focus to the Flash object will probably cause issues if someone was trying to tab/arrow past the element that ZC is glued to (rather than trying to tab/arrow to it to use ZC). Possible workarounds:
@jonrohan

This comment has been minimized.

Show comment Hide comment
@jonrohan

jonrohan Jan 17, 2013

Contributor

The only thing that worries me about this is the focusing. I did try and see if I could un-focus the flash object. and ran into problems that browsers won't let you un-focus plugins.

Anyways, as long as it's smooth I don't mind.

Contributor

jonrohan commented Jan 17, 2013

The only thing that worries me about this is the focusing. I did try and see if I could un-focus the flash object. and ran into problems that browsers won't let you un-focus plugins.

Anyways, as long as it's smooth I don't mind.

@Frexuz

This comment has been minimized.

Show comment Hide comment
@JamesMGreene

This comment has been minimized.

Show comment Hide comment
@JamesMGreene

JamesMGreene Feb 18, 2013

Owner

Interesting but ugly. We would want to make code like that optionally enabled. Thanks for sharing, @Frexuz. 👍

Owner

JamesMGreene commented Feb 18, 2013

Interesting but ugly. We would want to make code like that optionally enabled. Thanks for sharing, @Frexuz. 👍

@JamesMGreene

This comment has been minimized.

Show comment Hide comment
@JamesMGreene

JamesMGreene Jul 19, 2013

Owner

Two of the most promising discussions I've found surrounding programmatic focusing into Flash:

Owner

JamesMGreene commented Jul 19, 2013

Two of the most promising discussions I've found surrounding programmatic focusing into Flash:

@JamesMGreene JamesMGreene added this to the Release 2.x (> 2.0) milestone Mar 21, 2014

@JamesMGreene JamesMGreene modified the milestones: Release 2.x (>= 2.1), Release 2.0.x Infrastructure Enhancements May 24, 2014

@kevgrig

This comment has been minimized.

Show comment Hide comment
@kevgrig

kevgrig Apr 11, 2015

This would be a nice feature

kevgrig commented Apr 11, 2015

This would be a nice feature

@cjolif

This comment has been minimized.

Show comment Hide comment
@cjolif

cjolif Jul 17, 2015

I thought github was using ZeroClipboard, and Github clone URL copy is working not only on click but Enter as well. Does it mean something has been done here despite the issue still being open? Or is that a Github "only" feature?

cjolif commented Jul 17, 2015

I thought github was using ZeroClipboard, and Github clone URL copy is working not only on click but Enter as well. Does it mean something has been done here despite the issue still being open? Or is that a Github "only" feature?

@cjolif

This comment has been minimized.

Show comment Hide comment
@cjolif

cjolif Jul 17, 2015

Ok, looks like this is working on Chrome only.

cjolif commented Jul 17, 2015

Ok, looks like this is working on Chrome only.

@lancetharper lancetharper referenced this issue in rei/rei-cedar Nov 30, 2016

Merged

Docs/flash copy #191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment