firefox support

This commit is contained in:
Peter Cottle 2013-01-08 10:40:53 -08:00
parent 003977911d
commit eed87168ed
7 changed files with 160 additions and 33 deletions

View file

@ -39,7 +39,7 @@ KeyboardListener.prototype.mute = function() {
};
KeyboardListener.prototype.keydown = function(e) {
var which = e.which;
var which = e.which || e.keyCode;
var key = mapKeycodeToKey(which);
if (key === undefined) {