minutekey / ez-access-web

Automatically exported from code.google.com/p/ez-access-web
0 stars 0 forks source link

Way to turn off volume control with '<<' & '>>' #107

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The Skip Backward & Forward keys were intended to be semi-custom. In some 
applications, like voting, they might jump to the first page and last page. In 
other applications (and as used in several real implementations) those buttons 
are used for volume control.

In a recent addition, I added "keybindings" to those keys. Right now, the 
default usage is to control the volume, which I think is good.

However, what if an application has a custom use for those keys on most pages, 
but not all? For example, on the first ballot page, pressing '<<' should not do 
anything (except maybe an error tone) because the user is already on the first 
page. Similarly with '>>' on the last page. What are some ways to tell the 
system that these keys should not adjust the volume on these pages?

Original issue reported on code.google.com by jbjor...@gmail.com on 26 Sep 2013 at 5:20

GoogleCodeExporter commented 8 years ago
Some potential ways:
1. Put the keybinding on a dummy element? (This doesn't seem right)
<div class="invisible" data-ez-keybinding="skipforward"> </div>

2. Changing how keybinding works. Right now keybinding is applied directly to 
an element that will be "clicked".

3. Add yet another body attribute: 
  data-ez-volumebuttons="skip" (which is the default value if not specified)
  data-ez-volumebuttons="none"

Original comment by jbjor...@gmail.com on 27 Sep 2013 at 7:48