only set up input bindings for clickable keys
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 28 Apr 2009 00:43:30 +0000 (00:43 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 28 Apr 2009 00:43:30 +0000 (00:43 +0000)
keys.js

diff --git a/keys.js b/keys.js
index 5dbfb104f3f34cfa847c4c79264763ec6eafbc6c..650cb151f9bec2ef0766de40612080ff6fb07de5 100644 (file)
--- 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];