Whoops, don't use the update() part of that ...
Safari will fire the onkeydown and onkeyup twice for arrow keys,
function keys, etc.
KeyNav = function(){ bindMethods(this); };
KeyNav.prototype = {
init: function(){
connect(currentDocument(), 'onkeydown', this.key_down);
},
key_down: function(e){
log(e.key().string);
}
};
key_nav = new KeyNav();
addLoadEvent(key_nav.init);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---