Skip to content

Instantly share code, notes, and snippets.

@iiic
Last active June 28, 2017 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iiic/6a51a777f7478d847a6a70d6706250df to your computer and use it in GitHub Desktop.
Save iiic/6a51a777f7478d847a6a70d6706250df to your computer and use it in GitHub Desktop.
accesskey tester
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>accesskey tester</title>
<body>
<p>
takže nejdou použít: <br>
v chrome: d, e, f + všechny čísla<br>
ve firefoxu : fungují všechny, ovšem navíc s SHIFTem<br>
v opeře: d, f, p + všechna čísla<br>
v IE čku: d pouze<br>
</p>
<hr>
<script>
(function () {
'use strict';
const RADIX = 36;
const ACCESSKEY = 'accesskey = ';
for (var i = 0; i < RADIX; i++) {
var input = document.createElement('input');
input.type = 'text';
input.placeholder = ACCESSKEY + i.toString(RADIX);
input.setAttribute('accesskey', i.toString(RADIX));
document.body.appendChild(input);
document.body.appendChild(document.createElement('br'));
}
}());
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment