minutekey / ez-access-web

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

Disable back button #104

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We need a way to disable the back button. We have a few options:

1. Add a new 'data-ez-back="disabled"' attribute, or something similar.
2. When EZ Access is started off (via the preexisting attribute), do not allow 
browser to go back.
3. Make the web app responsible for this, however they decide to do it... Can 
be hacky. Must remove history for current page.

Original issue reported on code.google.com by aeharding on 12 Sep 2013 at 5:33

GoogleCodeExporter commented 8 years ago
Good catch.

I like the idea of #2 the best. When the system is reset, so is the "history" 
(or at least the action of the EZ Back button). Perhaps we need a data-ez-reset 
attribute instead of overloading the data-ez-start attribute?

Note that we also have the data-ez-keybinding attribute, which could be used as 
a hackish sort of a way to turn of the EZ Back button (by binding the key to an 
element which does nothing).

Original comment by jbjor...@gmail.com on 16 Sep 2013 at 2:51

GoogleCodeExporter commented 8 years ago
It seems like we're going with the data-ez-reset to disable the back button and 
reset the volume control, and making a data-ez-start="on|off|auto" to determine 
how to start EZ Access.

Original comment by aeharding on 16 Sep 2013 at 9:07

GoogleCodeExporter commented 8 years ago
Fixed by r333.

Original comment by aeharding on 17 Sep 2013 at 5:31