Allow keyboard control of the screenshot.
MODIFY
examples/common/js/examples.js
examples/common/js/examples.js
@@ -53,4 +53,10 @@ $(function () {
*/
});
});
+ $('.gj-screenshot-link').keypress(function (evt) {
+ if (evt.which === 13) {
+ $('.gj-screenshot-link').click();
+ return false;
+ }
+ });
});

MODIFY
examples/common/templates/index.jade
examples/common/templates/index.jade
@@ -37,7 +37,7 @@ html(lang="en")
ul.nav.navbar-nav.navbar-right
block screenShode
li
- a.gj-screenshot-link
+ a.gj-screenshot-link(tabindex=0)
| Screenshot
li.gj-screenshot-waiting
a ...

Allow keyboard control of the screenshot.