X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/a401632a210413c3a4f0237c8fd8986bdf45934c..9cabbcb99510ce7c9256d085d1c9de6c0b5fc8ce:/keys.js diff --git a/keys.js b/keys.js index 5dbfb10..650cb15 100644 --- a/keys.js +++ b/keys.js @@ -33,6 +33,7 @@ document.onkeypress = function(e) { var input = e.charCode || e.keyCode; for (var i = 0; i < keylabels.length; i++) { var key = keylabels[i].parentNode; + if (!key.onclick) continue; var keychar = key.className.match(/ chr(\d+)$/); if (!keychar) continue; // not enterable keychar = keychar[1];