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 5dbfb10..650cb15 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];